Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Steve Palm
RE: Add fields? [ reply ]  
2005-06-13 16:09
Found the l() thing is related to localization (duh) and I need to edit the .yaml files to put my strings in there. This brings in the form prompt and text field, but it doesn't store it in the database because the edit() method has another hard-coded list of allowable fields you can change. Putting the field in here also makes it work.

By: Steve Palm
Add fields? [ reply ]  
2005-06-13 15:54
What does it take to add a custom field to the user model so that it can be edited in the preferences?

I tried to add the field to the 'editable' list in user_environment.rb, and add the field to the schema, then I put a line in the edit form similar to the others, but it only displays some text for a field name, and no field text box.

Also, pardon my ignorance, but where is the l() method defined that is called in the user_controller object? It seems to be some kind of lookup to get a prompt for a field, but I'll be darned if I can find where it's at.