Ruby on Rails
Tuesday, October 30, 2012
Where the file_name and class_name are declared? I don't see them declared inside the edit function.
-- On Tue, Oct 30, 2012 at 3:58 PM, Sreekesh O. <lists@ruby-forum.com> wrote:
The controller code for edit view:
******************************************
def edit
@<%= file_name %> = <%= class_name %>.find(params[:id])
end
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment