search for: marmolin

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

Did you mean: margolin
2007 Jul 22
3
Retrieving validation messages without making errors
I would like to inform the users about attribute validation conditions for form fields using title as in <span title= "cannot be blank" >. The simplest way would be to use the validation error messages already defined in the models, but I cannot find any way to retrieve these messages, when no error has been made. The methods I have tried as errors.full_messages only returns the
2012 Jan 11
4
Observe field with jquery in Rails 3.1
I tries to observe a change in a field with jquery in Rails 3.1 in order to be able to implement two cascading select boxes. A a first step I just try to observe a click in a div using jquery I have the following function in a .js file that is loadedin the head section (fieldset is the id of a div) and is displaying a view with the div fieldset $(document).ready(function() {
2009 Mar 01
1
Strange behavior of Source.column_names
I have a class named Source and a controller named SourceController etc. When I use Source.column_names in the view all names except names ending in _id is listed, although according to the documentation all names should be listed When I use Source.column_names in the source controller it lists correctly all names also the ones ending in id. When I first call Source.column_names in the
2009 Aug 01
0
Nested forms and deleting/removing has_many associations
I am using nested forms on person model that has many pictures. I would like to allow the user to remove on or more of the associated pictures from the person using nested forms as suggested by Ryan Bates. However delete will delete the picture not remove the associatioon I can do it in the controller, but it should be done in the same way as delete is performed using attribute _delete Anyone
2013 Feb 27
0
Exended modules and reject_if in nested_attributes
I have some common class methods in a module ''active_record_additions'' that I load into a class by Activity by using extend ActiveRecordAdditions The Activity class uses nested_attributes_for with a reject_if method saved in the module ''active_record_additions'' The problem is that the class methods in ''active_record_additions'' works when I
2008 May 24
2
test:prepare failure with enum columns
Hi, I have a MySQL database that I use with my Rails application. I attempted to use "rake db:test:prepare" to create a test database. (Very cool, feature, by the way.) I then get the error rake aborted! You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.[] After some search I learned that