I'm trying with chapter 7 in RailsTutorial and have code in
user_controller:
def new
@user = User.new
end
def create
@user = User.new(params[:user])
if @user.save
redirect_to root_url, :notice => "Signed up!"
else
render "new"
end
end
if I remove 'create' method and Running App then have error :
The action 'create' could not be found for UsersController
I don't know why have to 'create' method'?
and how to fix this problem if not using 'create' method.
Thanks....
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/980f3ed759ead38e939beea918e9b453%40ruby-forum.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.