search for: admin_requir

Displaying 4 results from an estimated 4 matches for "admin_requir".

Did you mean: admin_required
2006 Apr 22
3
Making a separate admin zone
Hi, im building a little cms and i want to separate the admin zone controllers in a subfolder(controllers/admin) if possible to all be managed by one login module, i just have managed simple 3 or 4 controller apps so any help you can give me will be very apreciated. ;) -- Posted via http://www.ruby-forum.com/.
2009 Mar 05
4
before_filter :action_name OR :action_name
Hi there I am wondering if we can use before_filter in the form of :action OR :action what i want to do is to implement one of the actions, if the first failed, then go to the second when i use before_filter :action1 before_filter :action2 each method will run them, my case is that i want to check if one of them is true and not both any idea?
2008 Sep 24
3
caches_page :if not executing (but caches_action :if) does
...Full example (also in pastie): #In this case, the :if is ignored, and all pages cache class PagesController < ApplicationController caches_page :show, :if => Proc.new {|c| ["home", "something- else"].index(c.request.path_parameters["id"])} before_filter :admin_required, :only => [ :index, :new, :create, :delete, :edit, :update ] before_filter :IP_restricted, :only => [ :index, :new, :create, :delete, :edit, :update ] #In this case, the :if executes correctly class PagesController < ApplicationController # just changing caches_page to caches_actio...
2009 Dec 23
8
Where did this value in a form come from?
Newb here. I have a form and a value that is being displayed ... and I have no idea where the value came from. I have done a <%= debugger; '''' %> in the form and, indeed, the debugger stops at the statement. I have tried to trace through the code to see where the value came from ... and I gave up. So ... what in Rails initializes the fields of a form? -- Posted via