search for: calendarcontroller

Displaying 2 results from an estimated 2 matches for "calendarcontroller".

2006 Jul 27
9
CalendarHelper
Has anyone had any luck using the CalendarHelper plugin at http://wiki.rubyonrails.com/rails/pages/CalendarHelper recently? I''m scratching my head over the following error when I look at any page in my application: NameError in CalendarController#index undefined local variable or method `date_format'' for #<CalendarController:0x24ccd4c> RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/controllers/application.rb:8:in `localize'' /usr/local/lib/ruby/gems/1.8/gems/act...
2006 Aug 31
1
Need architectural help avoiding render :component
...nsure that joe has permission to view that page. As far as I can tell, it''s not possible to handle this in routes.rb, so I put it in a controller, PageController. Once the app determines what kind of controller is required, it needs to pass on the request to the appropriate controller (a CalendarController, BlogController, ToDoController, etc). It seems like the most straightforward way of doing this is to have the last line of PageController''s routing function be "render :component => ..." I have managed to use what I consider to be a gigantic hack to get around this. PageCo...