search for: eventcontroller

Displaying 5 results from an estimated 5 matches for "eventcontroller".

2005 Dec 15
2
Error: [Object]Controller: missing default helper path [controller]_helper
...have checked up with the folks on IRC but I can''t seem to find a solution. My problem is as such. I have a web application that has various controllers which work fine. I''ve added a new controller for the object Event, which at this point is very simple and reads as: class EventController < ApplicationController layout ''standard'' before_filter :authorize # method handle used for handling adding new events to the system def add @locations = Location.find_roots @arts = Art.find_all @event = Event.new( @params[:event] ) @event.use...
2006 Jan 31
2
Fragment caching and pagination
I''m just getting my hands dirty with caching. The pages I want to cache have some user specific data on them (for example "log out"). That sent me down the route of fragment caching. One of the things I want to pagination is a paginated list. My question is how is pagination and query strings handled with fragment caching? Does each page get its own fragment and query string
2008 May 17
1
Scope Confusion - Controller iVars in Modules
I''ve created a module to include in a Controller. Basically it works, but I am expecting methods in the module to have access to instance variables from the controller, and that appears to not be the case. Yet, a simple Ruby example says it should be. I''m not sure what''s different. Simple Example: module ShapeStuff def set_type @type =
2007 May 24
25
Specs for ApplicationController, where to put them?
The Rails ApplicationController (app/controllers/application.rb) serves as an abstract superclass for all other controllers in a Rails application and is a good place to put methods and filters which you want all of your controllers to use. In my case I''m using it to provide methods such as "current_user" and "logged_in?" etc. By default, RSpec
2006 Feb 21
5
Abstracting ownership verification out of Controller
Right now I have a controller for "events" that belong to a specific user. I only want the creator to be able to edit or delete the event. I''ve got the proper foreign keys set up. I''ve finally arrived at the point where I can take baby steps with code, but looks like my first steps are in flagrant violation of the DRY principle. Here''s what I have so far in