search for: accountcontrol

Displaying 20 results from an estimated 36 matches for "accountcontrol".

2006 Sep 29
0
Living Dangerously?
...ime (gasp!). Specs started to fail on the basic "controller.should_be_instance_of ...": <ApreviousController> should be an instance of <ThisNewController> A simple trace in lib/rspec_on_rails.rb (around lines 43-48) shows the following... >>>>>looking for AccountController >>>>>found #<AccountController:0xb74cff20> (next test) >>>>>looking for FeedbackController >>>>>found #<AccountController:0xb74ce288> >>>>>looking for FeedbackController >>>>>found #<AccountController:...
2006 Apr 20
8
2 layouts per .rb page
Hi, Is this possible ive got layout "loggedout_layout", :only => [:login, :logout] but I also want to do somthing like layout "loggedin_layout", :except => [:login, :logout] When the second one is introduced it seems to cancel out the first request, any suggestions how to get around this? Scott -- Posted via http://www.ruby-forum.com/.
2007 Jan 19
9
werid error, please help
...p://localhost:3000/ i get this Application Error Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html I removed the default index.html and route it to Account controller. If you read the log below, it seems that the AccountController is not defined, but it is there. If anyone can help, i would greatly appreciate it. Thank you here is the log: Expected ./script/../config/../app/controllers/account_controller.rb to define AccountController D:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.r...
2006 May 06
5
login generator always give login unsuccessfull
hi guys, i just did what it is written in this website to genrate login http://wiki.rubyonrails.org/rails/pages/HowToQuicklyDoAuthenticationWithLoginGenerator at the end i add to the database login and password but when i tried to login it give me login unsuccessfull can anyone help me thanks notice: i m beginner in webdeveloppement and especially ruby on rails -- Posted via
2007 Oct 16
6
Failure trying to test ApplicationController
I''m trying to write some tests for the ApplicationController as shared tests that can be run in all of my other controller tests, but am getting a nil.rewrite error. Below is what I have... describe AccountController do it_should_behave_like ''Application controller'' end describe ''Application controller'', :shared => true do it ''should fail require_login check if not logged in'' do User.current = nil controller.require_login.should be_fa...
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
...rd_expiration(3i)]" value="1" /> <%= f.date_select(:card_expiration, :start_year => 2008, :use_month_numbers => false, :discard_day => true, :include_blank => false) %></p> ActiveRecord::MultiparameterAssignmentErrors in AccountController#signup_unlimited Parameters: {"user"=>{"company_name"=>"", "card_type"=>"Mastercard", "password_confirmation"=>"", "card_number"=>"", "card_expiration(1i)"=>"2008&quot...
2006 Aug 12
6
params not getting POSTed
I have a situation where no params are being sent when the form is submitted. After the rendering this is the html that I get... <form action="/stats/new" method="post"> Height: <input id="stat_height_ft" name="stat[height_ft]" size="5" type="text" />ft </p> Weight: <input id="stat_weight_lbs"
2007 Sep 16
5
"rake spec:doc" returns NO NAME (due to --dry-run) for each specify block
I went ahead and moved to the trunk versions of RSpec and Spec:Rails because I wanted to try out the new Story Runner feature. However, when I tried to do "rake spec:doc", I got the following: AccountController - NO NAME (Because of --dry-run) AccountHelper - NO NAME (Because of --dry-run) User (in general) - NO NAME (Because of --dry-run) - NO NAME (Because of --dry-run) - NO NAME (Because of --dry-run) - NO NAME (Because of --dry-run) - NO NAME (Because of --dry-run) - NO NAME (Because of --dry-run...
2007 Jul 31
1
anyway to exclude logging for a given IP address?
Hi, im not sure if this is a mongrel or rails question, so im sorry if I got the wrong list. Is there anyway to turn off logging (in production.log) if a request comes from a given IP address. I use monit to watch everything, and I get tons of this in my log file: Processing AccountController#login (for 127.0.0.1 at 2007-07-31 14:06:28) [GET] Session ID: XXXXXXXXXXXXXXXXXX Parameters: {"action"=>"login", "controller"=>"account"} Rendering layoutfalse within layouts/login Rendering account/login Completed in 0.00390 (256 reqs/sec)...
2007 Mar 31
0
routing problem with controllers in other dirs
...pp +- /controllers +- /Foo +- /account_controller.rb -- routes.rb -- map.connect ''Foo'', :controller => ''/Foo/Index'' map.connect ''Foo/:controller/:action/:id'' ... -- ~ routes.rb -- -- /Foo/account_controller.rb -- class Foo::AccountController < ApplicationController -- ~ /Foo/account_controller.rb -- Strange thing is - when i point my browser to mydomain.com/Foo i always get redirected to /Foo/account/login (where exception takes place), that means - get right routing for /Foo/Index controller which is: class Foo::IndexController...
2007 Jan 19
2
route issue after update to 1.2.1
Updated...(trimmed comments) $ gem list *** LOCAL GEMS *** actionmailer (1.3.1, 1.2.5) actionpack (1.13.1, 1.12.5) actionwebservice (1.2.1, 1.1.6) activerecord (1.15.1, 1.14.4) activesupport (1.4.0, 1.3.1) postgres (0.7.1) rails (1.2.1, 1.1.6) rake (0.7.1) rmagick (1.14.1, 1.13.0) sources (0.0.1) Updated application... $ rake rails:update (in /home/craig/svn/th-db/branches/phase3) install -c -m
2007 May 26
0
New worker not being created
...uby/gems/1.8/gems/actionpack-1.13.0/lib/action_controller/base.rb:1095:in > `perform_action_without_filters'' > etc. etc. etc. > > What seems really odd is that while new_worker returns a key, a worker is > never created. I verified this with a Breakpoint: > > irb(#<AccountController:0xb6bdfa04>):001:0> key = MiddleMan.new_worker(:class => :example_worker) > => "a2dc70e7a1de822c4616113a9d602dec" > irb(#<AccountController:0xb6bdfa04>):002:0> MiddleMan.jobs.has_key?(key) > => false > > I don''t get it. What''s g...
2006 Jul 29
3
Validating two models
...er_data, :foreign_key => "user_id" validates_presence_of :email end # Model contains firstname, lastname etc. class UserData < ActiveRecord::Base set_table_name("user_data") validates_length_of :firstname, :lastname, :maximum => 10 end I save the model in the AccountController like that: @account = Account.new(params[:account]) @account.user_data = UserData.new(params[:user_data]) @user_data = @account.user_data @account.save Now I got the validation errors for Account, but not for UserData. How can I get these errors for both models? Thanks Steffen --...
2006 May 25
1
AppMailer and McCray''s theme generator
.../ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `new'' D:/MATech/Prog/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.0/lib/action_mailer/base.rb:227:in `method_missing'' #{RAILS_ROOT}/app/controllers/account_controller.rb:14:in `login'' Source: class AccountController < ApplicationController model :user layout ''login'' def index redirect_to ''/account/login'' end def login case @request.method when :post if @session[''user''] = User.authenticate(@params[''user...
2006 Jul 02
5
"the number of parameters does not match the number of substitutions" error
All of a sudden, I''m getting this error: 1) Error: test_index(AccountControllerTest): RuntimeError: The number of parameters does not match the number of substitutions. /home/joe/projects/tanga/trunk/config/../vendor/rails/actionpack/lib/action_controller/assertions.rb:92:in `assert_redirected_to'' /home/joe/projects/tanga/trunk/config/../vendor/rails/action...
2005 Mar 30
2
Production Log Analyzer 1.1.0
...le Output: Average Request Time: 0.279874593327209 Request Time Std Dev: 0.351590385021209 Slowest Request Times: ZeitgeistController#goals took 30.889858s ZeitgeistController#goals took 29.657513s EntriesController#save_comment took 20.499292s AccountController#create took 19.539545s EntriesController#save_comment took 15.46844s ZeitgeistController#goals took 14.814086s ZeitgeistController#goals took 13.943129s ZeitgeistController#goals took 13.113908s ZeitgeistController#completed_goals took 12.77...
2006 Jun 23
5
create session only for logged-in
i was wondering how a blog db has grown by about 15 mb in a week or two. it turns out its the sessions table.. so ive tried this: class ApplicationController.. session :off end class AccountController session :only, :login end and now, its impossible to login, and nothing ever appears in the session table. is this the right approach? i dont want to weed out the sessions with cron, i just want them to never be created unless its necessary.. preferably without needing to go around and add a...
2009 Apr 27
5
ruby jasper report
...reate a pdf using ruby jasper. For this I am referring this url:- http://oldwiki.rubyonrails.org/rails/pages/howtointegratejasperreports I have done everything whatever is in that link. Still I am not able to get the pdf. I am not getting any error in log file. My log file is:- "Processing AccountController#customer_report (for 127.0.0.1 at 2009-04-27 13:19:34) [GET] [4;36;1mSQL (0.0ms) [0m [0;1mSET NAMES ''utf8'' [0m [4;35;1mSQL (0.0ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m [4;36;1mCustomer Load (0.0ms) [0m [0;1mSELECT * FROM `customers` [0m Rendering account/custome...
2006 Jul 12
0
Odd "sweep" error on older code
...gin method, I get a 500 error thrown. Looking in the development.log, it seems that it''s a problem with a "sweep" getting called on a nil. However, I can''t for the life of me figure out what its problem is. Here''s the chunk from the log: #### Processing AccountController#login (for 74.239.172.234 at 2006-07-11 12:29:15) [ POST] Session ID: a129e22b0d979a5e287c2bdf3c662916 Parameters: {"action"=>"login", "username"=>"Lunenburg", "controller"=>"account", "password"=>"X...
2006 Jun 06
1
Problem with model and controller dir having same name?
After a rather frustrating couple of hours I finally realised that if you generate controllers under a subdirectory, eg /admin/book, /admin/account, etc and you also generate a model with name "Admin", then rails gets confused and prints a really useless error: Recognition failed for "/admin/account" This is with rails 1.1.2. Can someone please explain: a) Why this