search for: clientscontroller

Displaying 7 results from an estimated 7 matches for "clientscontroller".

Did you mean: clients_controller
2007 Sep 13
2
Failing to raise an exception in a stub
...ollowing stub: @client.stub!(:save!).and_return(true) which works fine. However, in the negative case, @client.stub!(:save!).and_raise(ActiveRecord::RecordInvalid) The save! call in the controller doesn''t seem to work. I get the following error: ArgumentError in ''ClientsController POST /clients with invalid parameters should show new form again'' wrong number of arguments (0 for 1) /Users/jarkko/Sites/koulutusweb/app/controllers/clients_controller.rb: 41:in `create'' The line #41 consists only of @client.save! I''m at a loss seeing wher...
2006 Apr 10
0
Rails form error message oddness...
To get error messages for my form to show up I have to repeat myself in the controller so that the render of the view including error messages show up. ------------------------- My Controller: ------------------------- class ClientsController < ApplicationController #---- index -------------------------------- def index list render :action => ''list'' end #---- list -------------------------------- def list @client_pages, @clients = paginate(:clients, :order_by => ''name'') e...
2006 Jul 02
2
Problems implementing a N:M table that contains actual data
Hi everyone, I''m currently finishing the planning phase of a small project I want to create. I read a bunch of tutorials about ActiveRecord and the different way to link your "tables" with belongs_to, has_many, has_and_belong_..., etc... However I''m stillnot sure if what I''m trying to do will work *well* with ActiveRecord. So enough talk,
2008 Feb 20
1
link_to weirdness, related to namespace?
Hi, In my app/views/admin/clieint/_searchresults.rhtml partial, I have ... <% for user in @users %> <tr> <td><%=h user.ship_to_first_name %></td> <td><%=h user.ship_to_last_name %></td> <td><%=h user.email %></td> <td align="center"><%= link_to ''Show'', {:action =>
2011 Feb 01
10
SSL problems with RoR, MySQL and Apace
Hello All - This is my first post into this forum and somewhat of a newb to RoR so I''m hoping someone can help. I currently have a RoR app that runs on Ubuntu with Apache and Mysql. There are two issues I''m having and they are causing me to bang my head against the wall. First one is RAILS_ENV: If I run ruby script/console it says that my environment is development
2008 Mar 08
9
Validation error handling on related models
I have 2 models, entity and client. Entity has_one client and client belongs_to entity. Entity has attributes name and legal_name. Entity also has an unique index on (lower(name)). The pKey for both is the conventional Rails id. Client has a fKey constraint on entity_id and is indexed in entity_id. In controllers/clients_controller.rb I have: # GET /clients/new # GET /clients/new.xml
2009 Dec 06
9
Route error to Admin namespace
...t; areas to the clients manager the app. This "admin" is a directory on my controllers path, like this: my_site --> app -->-->controllers -->-->-->admin And my controllers in "admin", i use the correct namespace(example for clients_controller): class Admin::ClientsController < AdminController Only doing it and dont use routes, it run OK if i access by the url: http://localhost:3000/admin/clients But local and on my server(passenger) it is ok, and function normal, but on JRUBY i get an error because it is thinking that "admin" is a controller and "c...