similar to: change error messages for Validation helpers?

Displaying 20 results from an estimated 900 matches similar to: "change error messages for Validation helpers?"

2006 Jan 28
8
how to pass search parameters to pagination links
I have a search page with a text_field as below <%= text_field ''program'', ''program_name'' %> After I perform the search in my controller I go to a search results view which shows search results and uses Rails pagination. Now how to pass the search paramters (i.e. params[:program][:program_name] in my controller) to the pagination links (next and
2006 Jan 05
3
MS SQL server connection problems
I am trying to connect to a remote sql server and I am getting the following error: c:/ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb:57:in `connect'': Open (DBI::Databa seError) OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. HRESULT error code:0x80020009 Exception
2006 Jun 01
5
Content Management System
I am looking for a good CMS based on Rails that has at least these attributes: 1. Ease of use ( as it will be used by people who are not html literate) 2. Very easy/flexible to change layout. So far I have looked at http://rcms.oopen.de/Home/ (have not installed it yet) http://adminpages.flowdev.de http://demo.radiantcms.org/admin/pages http://www.eribium.org/eribium/ MuraveyWeb does not seem
2006 Feb 01
1
Rails pagination problem
I am having this problem with pagination query in my controller class. I am using SQL server and following code to create pagination fails, complains about column name ''program_name'' (which is valid column/attribute of program) The error message is: DBI::DatabaseError: S0022 (207) [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name
2006 Jan 04
2
how to display validation error messages for multiple record form
I am trying to figure out how to display model validation error messages for a multiple record form. My form is for setting up new accounts and collects information for two models - Accounts and Users. My create method collects the parameters from the form and adds them to a Account object and a User object then runs account.valid? and user.valid?. If it''s valid it updates the models
2006 Jul 04
3
act_as_state_machine plugin inaccessible
Seems like act_as_state_machine plugin is not accessible from http://lunchroom.lunchboxsoftware.com/articles/2006/01/21/acts-as-state-machine as this site is down and script/plugin discover is broken as it fails when trying to add plugin repositories giving the message as below; Add http://svn.northpub.com/plugins/? [Y/n] y (eval):3:in `each'': undefined method `[]'' for
2006 Apr 23
1
file_column does not work with update model
When I am creating a model, everything works but not during update (where I use Model.update_attributes(model_attributes) ). I get the error: Do not know how to handle a string with value ''image_xxx.jpg'' that was passed to a file_column. Check if the form''s encoding has been set to ''multipart/form-data''. The form is indeed multipart. Does
2007 Aug 24
26
testing behaviour or testing code?
hypothetical question for all you BDD experts: I want to make sure that a :list action always returns widgets in alphabetical order. There''s at least 2 ways of doing this: it "should fetch items in alphabetical order" do Widget.should_receive(:find).with(:order => "name ASC") get :list end it "should fetch items in alphabetical order" do [:red,
2007 Apr 07
2
functional test question
I have a view that passes two params hashes (:user and :school) to my controller action. In the functional test for the controller action, how do pass these two hashes? I tried the following that did not work get(:create, [:user => {:firstname => ''xxx'', :lastname => ''yyyy''}, :school => {:id => 1}] ) It seems to pick only the first array
2010 Aug 11
6
rspec2 not working with shoulda
I am using rails edge. I am using gem "rspec-rails", "= 2.0.0.beta. 19" . I have following code at spec/models/user_spec.rb require ''spec_helper'' describe User do it { should validate_presence_of(:email) } it { should validate_presence_of(:name) } end Here is my gemfile group :development, :test do gem ''factory_girl_rails'',
2006 Jul 17
19
updating model
hello, i am writing a simple user login system. when registering a user account, i have two field: password password_confirmation which are validated using validates_presence_of validates_confirmation_of and these are then used to generate a password hash which is stored in my database when i want to update the record (without changing the password and entering new values for password and
2006 Jul 12
5
validates_peresence_of
Is there an expert validater that can point me in the right direction? I''ve looked for extended documentation on ''validates_presence_of'' but i can''t seem to find any. I''m trying to make sure that i don''t enter a nil object in my database, so i''ve added validate_presence_of to my Record Model. i.e. --> class Record <
2007 Oct 19
27
Assumption tests
Hi all, I''ve been thinking about the whole validator/relationship speccing issue, and I came up with a suggestion, which I''d love to get some feedback on. The full article is available at http://www.inter-sections.net/ 2007/10/19/what-to-test-and-specify-and-where-to-do-it/ , with the relevant bit being about halfway down, but here''s the gist of it: 1.
2007 May 05
10
have_one and have_present
>Comment By: Luis Lavena (luislavena) > Date: 2007-05-04 23:37 > describe "An Asset" do > before(:each) do > @asset = Asset.new > end > > it { @asset.should have_one(:attachment) } > it { @asset.should have_present(:something) } > end Food for thought on these. I like have_one a lot. It speaks to me as a Rails developer and I think it speaks to
2012 Nov 18
3
remarkable activerecord association RSpec
i''m using gem Remarkable activerecord for association. i''ve installed remarkable and remarkable activerecrod both gem. i''ve added both gem in my Gemfile. i''ve added "remarkable_activerecord" as required in spec_helper.rb. describe Authentication do FactoryGirl.build(:authentication).should belong_to(:user)
2005 Mar 05
7
BroadVoice configuration changes for Outbound
Today, We have added INVITE Authentication. This seems to bring a large amount of problems to people in the way since they can't make outbound calls. Here's what needs to be done. You need to add three variables to your peers or friends, username, authuser, and secret. username=<phonenumber> authuser=<phonenumber> secret=<registration password> Dan
2005 Jul 26
2
Dial using URI(web) or using FORM(web)
Hello! I have an Asterisk@home instalation with 7 users working OK, and I'ld like to implement either a -- Web dial feature, where the user would fill one form field with a phone number and a connection would be created between his extention and the entered number. OR -- Dial using an URI (callto:xxxxx link in a web page), having AstTapi installed and configured in all workstations.
2005 Mar 25
5
Re-write callerid?
Is it possible to rewrite caller id's? I would like to have sip phones appear by their local cid (like Henk <208>) but when they call out using the PRI I would like their full DID (MSN) to appear (like 0031201234567) I could ofcourse set callerid to the main phonenumber but surely there must be a better solution? Thanks!! Remco
2004 Jun 01
2
BroadVoice usage?
Hi all, I've been trying to use BroadVoice as a SIP service provider. They don't officially support * but are helpful when it comes to answering questions for setup parameters. They claim they have no firewalls or access lists that need to be set up so I can get access to their servers. However, something's still not quite right when I use the parameters. It looks like our Asterisk
2005 Feb 01
2
Outbound calling with TDM400P
I am trying to place an analog outbound call from a Sipura SPA-841 through a * server with a TDM400P and 4 FXO's. When I call in from an analog line everything works fine, I can talk over the SIP phone. When I call out, * says: == Spawn extension (from-sip, [phonenumber], 1) exited non-zero on 'SIP/sipphone-d29d' -- Executing Dial("SIP/sipphone-9eb0",