similar to: validations not run till after action in controller is called

Displaying 20 results from an estimated 20000 matches similar to: "validations not run till after action in controller is called"

2006 Jul 23
8
destroy vs delete
what is the difference between destroy and delete in AR I am not sure what they mean by "Destroys the record with the given id by instantiating the object and calling destroy<http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000866>(all the callbacks are the triggered). If an array of ids is provided, all of them are destroyed." in
2006 Aug 09
0
Re: association does not get foreign key
On 8/10/06, Dion Hewson <dionhewson@gmail.com> wrote: > > I have a 1 to 1 relationship using a similar example as below (has_one, belongs_to) > > but when I do the save, the foreign key of the child object is not set to the id of the parent object in the relation ship > > > any ideas? > > cheers > > dion > > --------------------------------- > >
2006 Jul 12
1
Test for file_column
hi all, has any one had experience writing a test for file_column I can write a test for testing the data in the form, but am not sure how to test against the image any tips? cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060712/08f7996a/attachment.html
2006 Jul 24
1
upload progress
what is the best method for adding upload progress functionality there are the fcgi and mongrel plugins... but is there an HTTP Server agnostic way of doing upload progress stats cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060724/7c477b9c/attachment-0001.html
2006 Jul 19
2
best practice deployment
what is the best method to deploy from a development machine to production when you need slightly different files for each mode do you use TWO files such as db.yml.dev and db.yml.prod and use capistrano to deploy one or the other to database.yml or is it better to have one file and use conditions in your file such as <% if ENV[''RAILS_ENV''] = "production" %>
2006 Aug 16
1
absolute default route in routes.rb
how do you set a default route in routes.rb so that anything not recognised will default to :controller => ''home'' map.connect ''*'', :controller => "home" does not work so well cheers -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 26
0
validates_presence_of in upload_progress plugin
Hi there, I have implemented the upload_progress plugin which ajaxified my form_tag and works as expected(ish) and now I find that my validations do not work i.e validates_presence_of etc etc has anyone seen this before or know the work around cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 26
0
validates_presence_of broken
I have implemented the upload_progress plugin which ajaxified my form_tag and works as expected(ish) and now I find that my validations do not work i.e validates_presence_of etc etc has anyone seen this before or know the work around cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Sep 05
8
Hi..Guys new plugin again
Hi.. Guys new plugin again Foreign Key Associations is a plugin that automatically creates associations based on foreign-keys. The associations are created at runtime-ie. as your ActiveRecord models are loaded-so they will always be up-to-date. For example, given a foreign-key from a customer_id column in an orders table to an id column in a customers table, the plugin creates:
2000 Dec 27
1
Incorrect shell quotation in scp
Hi, as the current debian maintainer of the openssh package is a bit busy, I'm helping him with fixing a part of the bugs in openssh that debian users found will forward some of the reports to you. This is the first one and a fix or a comment why this should not be fixed would be appropriated. Thanks Space in filename is not correctly passed by scp to other invoked programs:
2006 Jun 18
1
plugings for date validations, email address validation & url validations in rails
Hi all, Is there any standard plugin available for date validations, email address validation & url validations in rails? Thanks in advance, Medha. -- If not you then who..... If not now then when...... ----------------------------------------------------- With Best Regards, Medha. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 Jan 23
2
Combine custom validations with helpers
Hi I have a model that uses several validation helpers, for example validates_presence_of. Now I want to add a custom validate method for a very complex validation. I override validate in the model and it works by itself but when I do this the helper validations stop working. I guess the helper methods rely on the ActiveRecord::Base#validate original method in some way. Has anyone any suggestions
2006 Jun 03
0
in_place_editor and erros or validations
Hello, I want to use the in_place_editor but I have validations on the model and I am not sure how to get them back to the user? I would like to show somehting right below the field if the save fails. Any clues? Till Vollmer -- Posted via http://www.ruby-forum.com/.
2006 Jun 07
0
passing a redirect_to action through a view to controller.
Hi, I have a situation where I could link_to a shared action in my controller through 2 separate use cases. In both cases, I''d like the action to execute and then render the same exact page from where it was called. In other words, just execute the action and then not do anything, maybe just refresh the current page from where I called the shared action. If I do have to specify an
2006 Jul 21
10
why validation on server side
hi, i have noticed that the validations in RoR happen at server side mostly what sites do is using javascript they validate user information there... whats the point of doing it at the server side is it that loading of javascript file in a browser makes a response to client slow and validation at server side offsets that....????? any sugeestions???? is it that i am missing something as
2006 May 12
2
Choosing not to save @session in a given controller or action ?
Hi ! All is in subject. In fact ? but I may make things wrong ? since I?ve deployed my rails app on an Apache/FastCGI with 3 ruby processes I encounter a problem. In my application, an applet requests a lot of thumbnails to the webserver. Serving these thumbnails need to read some variables in my @session. My problem occurs when, in my website (the one which contains the applet) I decide to
2006 Feb 14
1
ArgumentError in <controller not set>#<action not set> ??
Has anyone ever seen this before? It doesn''t happen n a predictable manner, and can occur via different controllers. Someone else posted about this back in December but no one replied. I''m completely stumped! Here is the text, thanks. ArgumentError in <controller not set>#<action not set> undefined class/module CustomerDomain RAILS_ROOT: script/../config/..
2005 Dec 19
0
Nested validations?
Hi all, Is it possible to do nested validations in RoR? For example, validate one situation, and if it passes, then validate another? I''m trying to avoid the situation of it throwing up multiple errors for a single attribute on a form, thus overwhelming a user. Thanks, Tom
2013 Sep 26
0
Devise Invitable and Validations -- what's the right way to do this?
Rails 3.2.14, Ruby 1.9.3, devise_invitable 1.1.8 I am trying to get invitations containing custom fields to validate their contents properly. I have tried the invite_keys hash route, as documented here: https://github.com/scambra/devise_invitable#model-configuration and unless I am doing something wrong with my Regexps, what happens is the fields are validated, but the error messages are
2006 Nov 04
0
adding an association to the logine_engine user model
How do you add associations to the User model when using the login_engine?? I have found that if I use my own User class in models/user.rb I will have to overwrite all the functions in the login_engines model this seems a redundat waste... but I need to add a has_one association to my User like so: class User < ActiveRecord::Base has_one :tile_stat, :dependent => :destroy end any