Ruby on Rails
Tuesday, October 30, 2012
On Tue, Oct 30, 2012 at 7:01 PM, KUL KING <kulking370@gmail.com> wrote:
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
you are using erb code inside the controller. i don't get why you want to do this or if it's even
possible to do it like this. start with the basic tutorials first before you go ahead with what you're
trying to do.
--
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.
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment