search for: accountscontroller

Displaying 11 results from an estimated 11 matches for "accountscontroller".

Did you mean: accountcontroller
2011 Jun 01
9
Routes and Namespace
Could someone explain me how to work with routes and namespaces? I need to understand it urgent to build an application. Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/aFVOeUZzVUlsUUFK. To post to this group, send email to
2006 Mar 10
1
Problem rendering components
I have an AccountsController that inherits from ApplicationController. In ApplicationController I define a generic layout. In this layout I render @title that is actually assigned in the AccountsController but has a default value in ApplicationController. In the layout template, I also have the standard contents_for_layout...
2005 Dec 17
2
Subfolders in Rails applications (newbie)
...r 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'' <h1>Testing accounting accoun...
2005 May 01
5
Example using Builder::XmlMarkup and .rxml files?
Greetings, I''m a newby to both "R"s in RoR. I would like to use Builder::XmlMarkup to generate my pages. If there is a working downloadable example somewhere, that would probably be enough. Otherwise, here''s what I want to do: With the following controller: class AccountsController < ApplicationController layout ''accounts'' model :account def edit @edit_p = "place holder example para" end end I want to understand how to convert the scaffold generated layout: <html> <head> <title>: <%= controller.action_na...
2008 Feb 04
1
Error on nil.build
I can''t figure out why I am getting an error for one of the tests below: ======================== describe AccountsController, "POST" do before :each do @user = mock_model(User) @account = mock_model(Account, :id => 1, :valid => true, :save => true, :users => mock("users", :build => @user)) Account.should_receive(:new).and_return(@account) end def do_post post &quo...
2010 Apr 05
1
`test': wrong number of arguments (1 for 2) (ArgumentError)
...ing 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 = ActionController::TestResponse.new end test &qu...
2013 Mar 07
3
Expected response to be a <:redirect>, but was <200>
...written describe ''GET search'' do it ''finds a named account directly'' do get :search, name: ''test'' expect(response).to redirect_to(account_path(''test'')) end I have been getting the following error SystemAccountsController GET search finds a named account directly Failure/Error: expect(response).to redirect_to(account_path(''test'')) Expected response to be a <:redirect>, but was <200> # ./spec/controllers/account_controller_spec.rb:21:in `block (3 levels) in <top (requ...
2008 Oct 14
4
replace_html not working
...l-1.1.4/bin/mongrel_rails:281 /usr/bin/mongrel_rails:19:in `load'' /usr/bin/mongrel_rails:19 Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/layout.erb (internal_server_error) and the information , when i select a month . Processing AccountsController#filtered_balances_for_a_month (for 127.0.0.1 at 2008-10-14 13:05:31) [POST] Session ID: BAh7CToUcmV0dXJuX2xvY2F0aW9uQzoeSGFzaFdpdGhJbmRpZmZlcmVudEFj Y2Vzc3sJIgxzaXRlX2lkIgYyIgthY3Rpb24iCXNob3ciB2lkIgYxIg9jb250 cm9sbGVyIhBhZG1pbi91c2VyczoMY3NyZl9pZCIlOWIyNWYwMzk5ZmFiMjZh MjhiNmNhMDBhNDkyY2NhNjU6CH...
2007 Nov 28
6
Newbie question
I installed Rspec and am getting the following failure: $ sudo gem install rspec Successfully installed rspec-1.0.8 Installing ri documentation for rspec-1.0.8... Installing RDoc documentation for rspec-1.0.8... $ spec -v RSpec-1.0.8 (r2338) - BDD for Ruby http://rspec.rubyforge.org/ $ cat acct.rb describe Account, " when first created" do it "should have a balance of $0"
2012 Mar 06
0
Devise/Cancan Signout User On Controller Action
...irection respond_to :html, :js def index per_page = 40 @transactions = Transaction.search(params[:id]).order(sort_column + " " + sort_direction) respond_to do |format| format.html # index.html.erb format.csv { render :csv => @transactions} end AND Account Controller class AccountsController < ApplicationController load_and_authorize_resource helper_method :sort_column, :sort_direction def index @accounts = Account.search(params[:program_id] respond_to do |format| format.html # index.html.erb format.json { render :json => @accounts} end def our_miles_balance a...
2010 Jun 20
7
rspec-rails 2.0.0.beta.12 showing undefined method error for route_to
First of all, I''ve been trying to find an answer for this problem all over the internet without luck. The thing is that I am using RVM with ruby 1.9.2-head and I created a new empty gemset. Then I installed bundler gem with: gem bundler install That installed the library into the /Users/damselem/.rvm/gems/ ruby-1.9.2-head at rails3/gems directory. Then I went to my rails 3 app