Displaying 1 result from an estimated 1 matches for "do_ret".
Did you mean:
do_get
2008 Feb 10
4
method from string?
...d a specific example and my
brain is frazzled.
Basically, I am doing a whole load of in-place editing and need
methods to support the updates.
Here is what I am doing now:
def set_blog_website
faq = Faq.find(params[:id])
faq.blog_website = params[:value]
faq.save!
@faq = faq
do_ret
end
Surely there is a generic way I can do this so that I can do something
like
def set_blog_website
@faq = update_column(:blog_website)
end
def update_column(column_name)
faq = Faq.find(params[:id])
faq.column_name = params[:value]<<-- here''s what I don''t know how...