search for: eventcontrols

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

Did you mean: event_control
2005 Dec 15
2
Error: [Object]Controller: missing default helper path [controller]_helper
Hello, I seem to have run into a problem that I can''t seem to make any headway on. I''ve searched the mailing archives, google''d for the appropriate keywords and 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
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
...itialize @type = ''square'' end end x = Shape.new puts x.type # ''square'' x.set_type puts x.type # ''circle'' My distilled Rails example would be something like this. I require the file in application.rb. module EventControls def change_test_var @test_var = ''y'' end end class UsersAdminController < ApplicationController include EventControls layout ''1col_admin'' attr_accessor :test_var def some_action @test_var = ...
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