Displaying 3 results from an estimated 3 matches for "groupscontrol".
Did you mean:
groundcontrol
2007 Oct 28
2
failing test with nested controller routes
...39;t post the whole thing.
I did put the nested routes names on the calls to the name routes:
it "should redirect to the new group on successful save" do
post_with_successful_save
response.should redirect_to(admin_group_url("1"))
end
the error:
1)
''Admin::GroupsController handling POST /admin/groups should redirect to the new
group on successful save'' FAILED
expected redirect to "http://test.host/admin/groups/1", got redirect to "http://
test.host/groups/1"
./spec/controllers/admin/groups_controller_spec.rb:246:
test log:
Processi...
2008 Mar 28
10
Inheriting from AdminController intstead from ApplicationController
...nd public section. The
AdminController looks like this:
module Admin
class AdminController < ActionController::Base
include AuthenticatedSystem
helper :all
protect_from_forgery
layout ''admin/layouts/admin''
end
end
For testing the new namespace I created a GroupsController which looks
like this:
require ''admin/admin''
module Admin
class GroupsController < AdminController
def index
@groups = Group.find(:all)
end
end
end
But every time I call the GroupsController I''m getting the following
error:
uninitialized constan...
Unable to figure out why a photo attribute of the paperclip plugin is not being passed in as a param
2011 May 20
4
Unable to figure out why a photo attribute of the paperclip plugin is not being passed in as a param
...edirected to http://localhost:4004/posts/22
Completed in 0.33966 (2 reqs/sec) | DB: 0.06069 (17%) | 302
Found [http://localhost/posts]
**Case 2**
A glimpse of what is being passed as part of the params as per the log
looks something like this wrt the project app running:-
Processing GroupsController#post_message (for 127.0.0.1 at
2011-05-20 15:42:52) [POST]
Session ID: 0d806dc029197b7db11552a447dd329e
Parameters: {"group_post"=>{"message"=>"hi5"},
"action"=>"post_message", "id"=>"10", "control...