search for: accounts_control

Displaying 12 results from an estimated 12 matches for "accounts_control".

2005 Dec 17
2
Subfolders in Rails applications (newbie)
...ers logically grouped into folders. So for instance: http://domain.com/accounting/accounts http://domain.com/hr/employees Here''s how I have tried to accomplish this: 1. Create folder ''accounting'' in /app/controllers/ 2. In /app/controllers/accounting, create ''accounts_controller.rb'' class AccountsController < ApplicationController def index end end 4. Create folder ''accounting'' in /app/views/ 5. Create folder ''accounts'' in /app/views/accounting/ 6. In /app/views/accounting, create ''index.rhtml'...
2006 Jan 08
9
URL/Site structure
Greetings, I''m fairly noob with rails and making my first DB driven site with it. I''m using the scaffold generator to develop the admin side of my site (admin_controller) I have three sections that I want to have the administrator edit, and I want to call these from the admin controller that has a layout with navigation to these three sections. When using the scaffold
2006 Mar 27
9
rename app>controller subfolder crashes app
Help, I changed a folder name in my app>controller from admin to company and now I get a company is not a class error. I do not have any custom routes set and have changed all references to admin, no joy. Does ruby / rails have a cache of the names? -- Posted via http://www.ruby-forum.com/.
2009 Jun 01
0
ArgumentError (interning empty string)
Hello, I am trying to send an email out on registration for confirming and I am thrown this error. I am unable to understand as nothing is nil in the class which I am passing to the Mailer. Please do help me. The stack trace follows: ArgumentError (interning empty string): app/controllers/accounts_controller.rb:103:in `register'' app/controllers/accounts_controller.rb:43:in `register'' /usr/lib/ruby/1.8/mongrel.rb:159:in `process_client'' /usr/lib/ruby/1.8/mongrel.rb:158:in `each'' /usr/lib/ruby/1.8/mongrel.rb:158:in `process_client'' /usr/lib/ruby/1...
2011 Aug 25
0
Rails 3.0 Fleximage Error Errno::EACCES
...gick and fleximage. Everything seems to be working fine except when I try to edit my account and upload an avatar. After selecting an avatar and click the update account button I get the following error: Errno::EACCES (Permission denied - /root/public_html/biomixr/tmp/fleximage): app/controllers/accounts_controller.rb:103:in `update'' Now I''ve been stumped on this. I looked at my permissions for /root/public_html/biomixr/tmp and they are 755. I in turn ran the command: mkdir /root/public_html/biomixr/tmp/fleximage to create the fleximage folder. I then tried to upload an avatar again an...
2011 Jul 21
4
Validation depends on Controller
I know in the model we can add validations. But how about if I need different validations depending on the controller. For example... 1) if the User is being created from the accounts controller, I want to REQUIRE the username be entered. 2) if the User is being created from the users controller, I want to NOT REQUIRE the username. validates_presence_of :username, :on => :create requires the
2006 Jun 04
8
Remove item from session
Hi there, when i do this: session[:myItem] = ''foo'' session[:myItem] = nil the item :myItem is removed from the session. But this: session[''myItem''] = ''foo'' session[''myItem''] = nil doesn''t remove ''myItem'', it''s empty but still in the session. Any suggestion ? Thanks in advance. mic
2008 Jul 10
0
User.protected_attributes returning empty Set instead of nil -- causing activerecord/lib/base:2307 to raise
...7:in `remove_attributes_protected_from_mass_assignment'' /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ base.rb:2114:in `attributes='' /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ base.rb:2033:in `update_attributes'' /app/controllers/accounts_controller.rb:50:in `update'' The model doesnt use attr_protected. It turns out that User.protected_attributes is returning an empty set instead of nil, which is what remove_attributes_protected_from_mass_assignment wants. The real fun part is that this only happens in tests (rake test:function...
2010 Apr 05
1
`test': wrong number of arguments (1 for 2) (ArgumentError)
...ot; do ... end syntax from the existing def test_some_method ... end syntax. Im pasting my test code below. Im getting the error in the subject line if I try to run the test as a ruby script from the console. require File.dirname(__FILE__) + ''/../test_helper'' require ''accounts_controller'' class AccountsController; def rescue_action(e) raise e end; end class AccountsControllerTest < ActionController::TestCase fixtures :accounts def setup @controller = AccountsController.new @request = ActionController::TestRequest.new @response = ActionControl...
2008 Jan 24
1
Uploading files: wrong number of arguments (1 for 0)
..._record/associations/has_one_association.rb:18:in `build'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations.rb:1114:in `send'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations.rb:1114:in `build_photo'' app/controllers/accounts_controller.rb:8:in `create''-------- Here is the controller code that is causing the error: def create @account = Account.new(params[:account]) @account.build_photo(params[:photo]) unless params[:photo]["filename"].blank? @user = @account.users.build(params[:user]) if...
2006 Jul 21
15
RoRED a free Ruby on Rails editor for Windows
Hi. On http://www.plasmacode.com you can download RoRED, a free IDE for Ruby on Rails apps, only for Windows. It has some interesting features like tab-grouping of related MVC files, code navigation into methods (ctrl+click), and more. Best regards, Marcus. http://www.plasmacode.com -- Posted via http://www.ruby-forum.com/.
2008 Oct 14
4
replace_html not working
...ender'' /vendor/plugins/render_with_error_proc/lib/action_controller/render_with_error_proc.rb:45:in `with_error_proc'' /vendor/plugins/render_with_error_proc/lib/action_controller/render_with_error_proc.rb:25:in `render'' /vendor/engines/adva_pac/app/controllers/accounts_controller.rb:225:in `filtered_balances_for_a_month'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `perform_action_without_filters'' /usr/lib/...