similar to: Plugins - Enhanced ActiveRecord Errors

Displaying 20 results from an estimated 30000 matches similar to: "Plugins - Enhanced ActiveRecord Errors"

2007 Nov 19
1
Install plugin "validate_attributes"
hi @all I try to install the plugin "validate_attributes". I''m using Windows and I tried to install the plugin with rapt like this: > rapt search validate_attributes > rapt install results Now, I always get an error "Rapt currently does not work outside of a Rails application directory. Please change to the top level of a Rails application and try again." For
2006 Aug 01
3
Validation on ActiveRecord destruction
Rails has many built in validation methods to ensure that an ActiveRecord instance cannot be created or updated under certain situations (typically caused by invalid data). However, I can find no methods to govern whether an ActiveRecord instance can be destroyed. Essentially, I wish an error to be raised when a user tries to delete an ActiveRecord without first adhering to a certain set of
2009 Nov 26
9
ActionView::TemplateError (can't convert ActiveRecord::Error into String)
I cannot work out why this error is appearing. ActionView::TemplateError (can''t convert ActiveRecord::Error into String) on line #3 of app/views/button/_show_enquiry.html.erb: 1: <h1>Send us a message</h1> 2: <% remote_form_for :enquiry, :url => {:action => ''send_mail''} do | f| %> 3: <%= error_messages_for ''enquiry'',
2007 Jun 10
2
custom errors for validates_presence, etc..
I am trying to figure out how to customize the error messages when I use validates_presence_of. I am validating a user name and I use <%= error_messages_for ''user'' %> in my view to display the messages. I know you can customize in the model with :message =>''custom message'', but I am trying to get rid of the first part of the error message which is, 1
2006 Aug 23
11
i18n friendly, plugable Rails Core
In my work with a simple localization plugin, i''m running into a lot of places in the Rails core, where text and other localization specific information is hardcoded. I''ve included some examples in the bottom of this post. It''s hard for an outsider to know, if the hardcoded values are a result of inconsistency in code, or "by design". I hope that we can have
2005 Dec 31
2
Validation errors not displaying and will not save
Hello all, I''m fairly new to rails so I''m probably doing something really stupid here.... I have been banging my head at this for hrs now... I''ve tried so many different things and nothing seems to get me any further... I am trying to create an image uploading page that will simultaneously create thumbnails to separate file directories and update the database via
2006 May 15
0
Rails plugin directory: Permalinks
You can now take a stab at quickly finding a plugin based on it''s name: http://agilewebdevelopment.com/plugins/ [plugin_name_with_underscores] So, http://agilewebdevelopment.com/plugins/acts_as_authenticated will take you directly to that plugin. If you guess incorrectly (there''s no exact match), then you''ll be returned a search based on what you entered. --
2006 Jan 23
2
Problems with error_messages_for
I have a model Area which has_many Streets. The Area has a couple of attributes of its own but mostly I want to be able to add/delete/update Streets for a particular Area, but all on one page rather than having a separate view for editing a Street. I''ve managed to get a form displayed with a row for each Street already assigned to the Area by using form fields with
2006 Jun 13
7
help with ''error_messages_for''
Greetings, I''m in the throws of deploying an app on site5, and I''m getting strange errors. I think I might need to understand how error_messages_for works. I get a pretty standard looking error: " You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occured while evaluating nil.errors Extracted
2006 May 10
1
Rails Plugin Directory - Comments
The directory of Rails plugins at http://www.agilewebdevelopment.com/ plugins/ now has support for adding comments to plugins, so stop by and leave a kind word about your favorite plugin. :) A feed for plugin comments is available at http:// feeds.feedburner.com/RubyOnRailsPluginComments, while the plugin feed itself is available at http://feeds.feedburner.com/RubyOnRailsPlugins. --
2006 May 03
1
error_messages_for when saving within another model
Hi, I have this save routine: def customer_address_create customer_options @customer = Customer.find(params[:id]) @customer.addresses.create(params[:address]) @saved = @customer.save end That passes to a rjs template like this: if @saved page.visual_effect :Fold, ''add_address'' page.replace_html ''addresses'', :partial =>
2006 Jun 07
0
problem with error_messages_for
Hi everyone, I have this weird problem where error_messages_for isn''t working. I have a model group which has to validates constraints.. --------------------------------- class Group < ActiveRecord::Base #directionality points to the user model #this table contains the foreign key belongs_to :user validates_uniqueness_of :name validates_presence_of :name end
2006 Feb 15
6
error_messages_for trouble
I am trying so learn how to do custom validations. The validation works as expected, but I can''t get "error_messages_for" to display. How is the name of the object supposed to be formated? Where is this object created, the model or controller? What am I doing wrong here? #### Model ######################## class MyFolder < ActiveRecord::Base def validate # validation
2005 Oct 02
0
is a dual 1.5Ghz server better than a single3Ghz for a 100 Iax users asterisk server
Thank you for your advise, I'll find something with a lot of memory.... Adrien -- Adrien Laurent - CIO 514-284-2020 adrien@modulis.ca www.modulis.ca -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jason Walker Sent: Saturday, October 01, 2005 12:25 AM To: 'Asterisk Users Mailing List - Non-Commercial
2007 Jul 15
0
errors_for
Been playing with merb. One of the helpers I liked in rails was on form validations. Found this was real easy to port over, so I thought I''d share. It doesn''t highlight the field with the error, but it gives that same nice little div on top. Say I had an articles controller def create @article = Article.new(params[:article]) @article.save! redirect
2010 May 20
0
plugins error
HI, in my applicaition i want to use automatic sesssion cleaning. i followed the website http://agilewebdevelopment.com/plugins/limited_sessions I have download this plugin, then configured session life time in environment.rb like CGI::Session::ActiveRecordStore::Session.recent_activity_limit = 2.hours. finally i have started my server while i am getting following error
2006 May 13
0
XML API for plugin directory
By popular demand, the XML API for the Rails plugin directory is now fully functional. Check out http://agilewebdevelopment.com/ plugins#api for more information about how to pull data out of and push data in to the directory without using a web browser. -- Benjamin Curtis http://www.tesly.com/ -- Collaborative test case management http://www.agilewebdevelopment.com/ -- Resources for the
2020 May 13
1
Sometimes commands do not terminate after upgrading to R 4.0 and Ubuntu 20.04
Thank you very much Dirk! Le mer. 13 mai 2020 ? 14:59, Dirk Eddelbuettel <edd at debian.org> a ?crit : > > Salut Adrien, > > It appears to be a bad OpenMP and and OpenBLAS interaction you can (for > now) > avoid) by replacing the 'pthread' variant of OpenBLAS with the OpenMP > version > (see the thread for details). Doing > > sudo apt install
2006 Jun 22
1
error messaging for a form without ActiveRecord model
I have a form that has no ActiveRecord model behind it, it is just composed of random fields like "email_address", "email_body", etc. Even though there is no model, some of these fields are required, and I would like to use the built-in Rails methods for automatically showing errors in the form. Unfortunataely, I can only see how to do this if the form is based on an
2007 Jan 20
1
Not appear error message
I have a partial form "empresa". In new.rhtml of "empresa", I call the partial form of "usuario". Well, it is happening the following: When save empresa, and stop in validates, as much in "empresa" how much "usuario", appear only error message of "empresa", and not of "usuario". Because this happening? ps1.: I use flash_message