search for: set_blog_websit

Displaying 1 result from an estimated 1 matches for "set_blog_websit".

Did you mean: set_blog_website
2008 Feb 10
4
method from string?
I am sure this is doable but I can''t find 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...