Thanks for getting back to me on this.
Here's my controller method:
def create_user
if request.post?
@user = User.new(params[:user])
if @user.save
flash[:notice] = "User has been added."
flash.keep
redirect_to :controller => 'admin', :action => 'list_users', :id
=> @user.id, :page => params[:page]
end
end
end
Thanks again
Ryan Bigg wrote:
> form_tag does not tag a string as an argument.
>
> Could you show us your controller please?
>
> Also, it may help you if you read
> http://guides.rubyonrails.org/getting_started_with_rails.html
> first.
> -----
> Ryan Bigg
> Freelancer
> http://frozenplague.net
--
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
-~----------~----~----~----~------~----~------~--~---