similar to: problem with AR and 'virtual' multiparameter attributes.

Displaying 20 results from an estimated 5000 matches similar to: "problem with AR and 'virtual' multiparameter attributes."

2007 May 12
4
help, 1 error(s) on assignment of multiparameter attributes
Hi everyone! I just started learning Ruby on Rails about a week ago for a school project, and can''t seem to find a solution for something. I have this inside the form inside of edit_albums.rhtml: <%= start_form_tag :action=>''proccess_edit_album'', :id=>@album.id %> .... Release Date: <%= datetime_select(:album, :release_date, :start_year => 1960)
2007 Nov 02
1
1 error(s) on assignment of multiparameter attributes - Very Strange
Hello... Well, I post this one without too much hope that someone will be able to give me an answer, because it is strange. I have a time select field, the field on the database is of type time only. When creating a document, as long as the time is not greater than 14:00, then it saves as 00:00, but if the time is greater than 14:00 and less than 22:00 then it throws this error: 1 error(s) on
2007 Aug 19
3
fastcgi issue on production
I just deployed my rails app to my production server. It''s all working locally, but when I switched it over to the production server (at dreamhost) I get this error: # Logfile created on Sun Aug 19 15:22:48 -0700 2007 by logger.rb/ 1.5.2.9 [19/Aug/2007:15:22:48 :: 1841] starting [19/Aug/2007:15:22:48 :: 1841] Dispatcher failed to catch: You have a nil object when you didn''t
2007 Oct 08
1
Rails reverses apostrophes
Hi, I am quite new to Ruby on Rails so this might have a very simple answer... My problem gives the following error message when I try to call the count function for an item. Mysql::Error: Unknown column ''TournamentTemplate'' in ''where clause'': SELECT count(*) AS count_all FROM action_logs WHERE (action_logs.loggable_id = 1 AND action_logs.loggable_type =
2006 Mar 02
6
Newb question about facade columns
Hello, I am trying to deal with a database table that contains a date in the form of the number of seconds since epoch. Data is inserted in this format by an existing script that I can''t change, so a schema change isn''t realistic. I would like to allow humans to view and edit this data in the form of an actual human-readable date. I figured a facade column would be the
2007 Jul 19
7
NoMethodError in partial driving me mad
Hello, i simplified have a news model, a news category model and a news controller. my _news.rhtml partial renders a single news entry. in my controller there are the actions show and show_category. if the "show" action is called, a single news item is rendered through my partial with no errors. if the "show_category" action is called, i get a NoMethodError while displaying
2007 Jun 25
2
undefined method `each' for ***:Class PROBLEM
Hi, i am very new to ROR, this is my 2nd day since i solve the problem of database connection. when i started to write some codes, i got stuck. here is the situation and please give me some help. i have a "posts" table in my database CREATE TABLE `mapapp`.`posts` ( `id` int(11) NOT NULL auto_increment, `title` varchar(255) default NULL, `body` text, PRIMARY KEY (`id`) )
2007 May 30
2
ActionView::TemplateError
Hi, I have a strange problem that only occurs on the production server. I''ve been banging my head for hours trying to figure it out with no success. Below is a copy of the error from the production log. ActionView::TemplateError (Expected /www/rails_apps/scanlan/current/ public/../config/../app/models/image.rb to define Image) on line #6 of app/views/admin/design/_record.rhtml: 3:
2007 Oct 24
8
validates_confirmation_of not working
Hello to everyone, Well, very frustrated with this one because I am following the example straight from the documentation and it is not working. First when I try: validates_confirmation_of :password, :on => :password_update (password_update is a def in my User model which works fine without this validation in please) I get the following error: TypeError in UsersController#update_password
2007 Nov 15
6
Link_to popup divorced from controller?
Here''s my case: Using a link_to popup window to show a related help file of an element on a page. The problem: Window pops up perfectly, but refuses to carryover @instance variables in the controller that I referenced in the link_to command. The tests: - I have the right controller/class, because it renders a specific template, which is what it does. - I have the right template/view,
2008 Dec 20
3
IMAP_Authenticatable Problem
Good morning all, I''ve been using the imap_authenticatable plugin for about a year now without incident. All of a sudden, I tried logging in this morning and this error is showing up in the logs. Does anyone have any idea what could be causing this or how to fix it? Thanks, Pete NoMethodError (undefined method `disconnect'' for nil:NilClass):
2007 Oct 24
7
NameError in CustomersController#index
I''m new to Rails. I finished the Cookbook tut. no problem. I''m trying to start a project of my own, follow the same instructions but the difference is I created the database myself. After I create the scaffolds and try them out I get this error NameError in CustomersController#index uninitialized constant Customer RAILS_ROOT: ./script/../config/.. Application Trace |
2006 Jan 30
4
multiparameter assignment
I''m trying to figure out the rails why to break a single database field out into multiple fields on a form, very similar to how rails does with dates. How can I create my own object that mirrors the date objects behaviur in how it accepts the multiparameter assignment from the form. Example: A phone number field (to force formating on the user) could be broken into 3 form fields,
2006 Mar 28
12
cached-model broken with Rails 1.1
It looks like cached-model is broken again under rails 1.1. Can anyone confirm? Note that the exception below indicates it''s trying to treat CachedModel as the class name of the model, rather than using the proper class name (which is Entry in this case, and the table called entries). This is a model using Single Table Inheritance and acts_as_tree, and worked just fine under 1.0 and
2007 Jun 11
3
ActiveRecord::StatementInvalid error
Hi, I have an application that is running fine on two different machines, but when I ported the code to a third machine, it doesn''t seem to work. More specifically, for users with a significant amount of info, it seems to stop working. All the functionality seems to be working properly on a small test set, but with a larger set I get the following error: AssociatedAp Load (0.000000)
2008 May 07
1
Actionwebservice
I am just learning some about web service. But many guys still use Java (Jws). But I wanna try ROR. There are less information about it. I can''t get install plugin in the ROR 2.0.x. So I followed the standard textbook("Agile_Web_Development_With_Rails-2nd" and "Ruby on Rails for PHP and Java Developers") I almost finished it. However, I can''t find my api
2005 Mar 02
9
date validation
I''m hoping someone can help me (a Rails newbie) with this. Basically, I need to verify that a date created with "date_select" is valid *before* it''s sent off to the database for acceptance (as a valid date) or rejection (as an invalid date). Given how easy the majority of validation are in Rails, I''ve got to believe there''s a fairly simple way
2006 Mar 03
1
weird error with login engine
Any ideas what would cause the following exception (using the login engine): -------------------------------------- Full executation backtrace: -------------------------------------- [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1697:in `execute_callstack_for_multiparameter_attributes'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1677:in
2009 Jun 22
1
getting error can't modify frozen hash
Hi, When I upgraded my rails application to rails 2.3.2 I am getting error ''can''t modify frozen hash'' on using @something.update_attribute(params[:something]). Can anyone help me who is familiarize with this bug? Thanks,
2008 Sep 11
2
time value won't come back from UTC
Hi there, I''m fairly new to RoR, and I seem to be having a problem with :time types. I save my times with a time_select on my form, to a time type field on MySQL. Rails automatically pulls it back to UTC from my timezone (+02:00), but when I display it again, it stays at the UTC value, i.e. I enter in 6:30, and I get 4:30 on my list. Is it just me, or is this a limitation of the time