search for: admin_listings_url

Displaying 1 result from an estimated 1 matches for "admin_listings_url".

2008 Jan 28
2
Could this controller test be made simpler?
...t; #with no submitted params response.should render_template("accounts/new") end # Controller code def create @account = Account.new(params[:account]) @user = @account.users.build(params[:user]) if verify_recaptcha(@account) && @account.save redirect_to admin_listings_url else render :action => "new" end end -- Posted via http://www.ruby-forum.com/.