Results 1 to 5 of 5
Thread: updating single column with form
Feb 23, 2009, 10:52 #1
- Join Date
- Dec 2004
- 0 Post(s)
- 0 Thread(s)
updating single column with form
I can't seem to find a tutorial on how to do this.
Here's what i have in my controller
def update_lang_pref @language = Person.find(session[:user]) if @language.update_attributes(:lang_pref) redirect_to request.env['HTTP_REFERER'] end
and i'm getting an error "can't dup Symbol". Parameters is reading "lang_pref"=>"1"
what am i doing wrong? Any help is appreciated.your brain reacts in the same way whether you are
looking at something or thinking about it...