search for: registercontrol

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

Did you mean: register_control
2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
...[root@mymachine easyrx]# gem install rails --include-dependencies Need to update 16 gems from http://gems.rubyforge.org ................ complete Successfully installed rails-2.0.2 [root@remandev easyrx]# But I''m getting this error in my restful_authentication plugin: NoMethodError in RegisterController#start undefined method `authenticate_with_http_basic'' for #<RegisterController:0xb7578750> RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace /usr/local/apache2/htdocs/easyrx/lib/authenticated_system.rb:102:in `login_from_basic_auth'' /usr/l...
2006 Apr 09
12
Validating two models from one form
...specifically the fields wrapped in <div class=''fieldWithErrors''></div> nevans@bell:app/models$ ls user_preference.rb user.rb The User class has_one :user_preference, and UserPreference belongs_to :user. Both classes have a half dozen validation rules or so. In my RegisterController, I have two actions: one to display the form, and one to save the form. --- # Don''t laugh too hard at how ugly my code is, I''ve only read # Agile Web Development and Why''s Poignant Guide! class RegisterController < ApplicationController def index @...
2006 Jun 04
0
A little confused about routes....
...r, however if I don''t explicitly list a controller I end up with a generated URL like: http://0.0.0.0:3000/competitions/2007+MIT+Open//start from a call of competition_url(:action=>''start'', :short_name=>@competition) from a view generated by a URL served by the RegisterController. I don''t really mind having to explicitly add the :controller to my _url helpers, but I''m wondering why it works some places, but not others. Thank you, -- Posted via http://www.ruby-forum.com/.
2006 May 22
13
How is this possible?
When run from the console, the following code works, when run through the WEBrick server I get a "You have a nil object where you didn''t expect it!" class Competition < ActiveRecord::Base has_many :comp_dates, :order=>:position def initial_date comp_dates.first end def display_dates i_d = initial_date if i_d.nil? return "unknown"