search for: customers_control

Displaying 6 results from an estimated 6 matches for "customers_control".

Did you mean: customerscontrol
2006 May 25
7
Grouping controllers
I''m grouping controllers to avoid cluttering the top-level namespace. First, I used script/generate Admin::Customers new edit show list and then I used script/generate Admin::Providers new edit show list. The generator created the subfolders correctly: I have an admin folder and inside there''s customer_controller.rb and provider_controller.rb. I have the same structure in
2009 Oct 02
0
Problems with validates_uniqueness_of
...## and when i run the application and want to add a diferent user from those are exist it work fine, bue when i want to add a user that is already add db it blow up and apears this : /////////////////////7777 ArgumentError in CustomersController#create too few arguments app/controllers/customers_controller.rb:71:in `format'' app/controllers/customers_controller.rb:71:in `create'' ////////////////////////77 ok so, what i found there was 70> flash[:notice] = ''Error!!!! intentelo de nuevo'' 71> format.html { render :action => "new" } 72> fo...
2007 Oct 24
7
NameError in CustomersController#index
.../InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/pagination.rb:195:in `paginator_and_collection_for'' D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/pagination.rb:130:in `paginate'' #{RAILS_ROOT}/app/controllers/customers_controller.rb:12:in `list'' #{RAILS_ROOT}/app/controllers/customers_controller.rb:3:in `index'' -e:4:in `load'' -e:4 D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ active_support/dependencies.rb:266:in `load_missing_constant'' D:/InstantRails/ruby/lib/...
2006 Mar 31
7
problem with habtm conditions in pagination
...ion'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/ action_controller/pagination.rb:198:in `paginator_and_collection_for'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/ action_controller/pagination.rb:129:in `paginate'' /app/controllers/customers_controller.rb:12:in `list'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/ action_controller/base.rb:908:in `perform_action_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/ action_controller/filters.rb:355:in `perform_action_without_benchmark&...
2006 Aug 30
7
Hyphens
Hi there, I''m working with some legacy data where customer phone numbers are stored with hyphens between the area code, exchange, and number (e.g. 555-555-5555). Is this the best way to store a phone number? Perhaps not, but it''s the way they were being stored, so I have to work with this format. Right, so when I save a record the log tells me acts_as_ferret indexed the
2007 Jul 18
16
Edge Rails namespaced routing
Hi, I was wondering if anyone came across a similar scenario when working with namespaced routes with edge rails. Consider an application with controllers customers and products that also have other resources. map.resources :customers do |customer| customer.resources :notes customer.resources :tags end map.resources :products do |product| customer.resources :notes customer.resources