Baba Bobo wrote:
If I add the following code to my only controller file
"user_controller.rb"
def show
@user = User.find(params[:user])
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @user }
end
end
After which when i refresh the Registeration page at
"http://localhost:3000/user/register"
it gives me following message:
ActiveRecord::RecordNotFound in UserController#show
Couldn't find User without an ID
--
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---