similar to: ActionView::TemplateError (can't convert ActiveRecord::Error into String)

Displaying 20 results from an estimated 1000 matches similar to: "ActionView::TemplateError (can't convert ActiveRecord::Error into String)"

2009 Feb 05
6
get # of errors in error_messages_for
hi everyone here i go again, i have problem we error message validation here is the sample of my code: error_messages_for :user, :header_message => ''X errors, please find red mark'', :message => ''Following errors were found:'' the problem is that how where going to get the value "X errors" or the number of errors if they have when the is
2008 Jan 31
3
presenting validation errors via fbml?
Hi Facebookers, Is there a helper or suggested approach for presenting validation errors on an fbml form? Something to translate rails error markup to fbml:error markup? thanks Joel
2010 Aug 18
7
error_messages_for doesn't work
I''m having a problem, ''cause I wrote the following line in my model "Hi": [code] validates_numericality_of :phone, :only_integer => true, :allow_blank => false, :message => "must be a number" [/code] And in my "new" view, I put: [code] <%= error_messages_for :oi, :header_message => "Erro ao cadastrar
2008 Aug 31
6
why's my course_duration being reset
Can''t get this?...I''m close I think, my calculation appears to be working, but.... when i access duration = <%= @enquiry.course_duration %><br> in my final view it''s blank.. course_duration is getting set to null but works for the calculation? controller.. ---------- class EnquiriesController < ApplicationController layout ''welcome''
2007 Dec 05
5
Active Record, Migration, and Translation
Hi, I think the columns and table in migration should be able to have an optional "display_name" set manually. Something like: create_table :people, {display_name => "Personne"} do |t| t.column :first_name :string, :display_name => "Prénom". end Let me explain my point of view: Rails is a framework made to write programs in English. You see it when you
2009 Oct 07
1
bind question, please help
Hi I don't know how to let the dns as zone and also enquriy in local network please help if this. the outside and inside can use this server to enquiry zone, but can't enquriy non zone. but how can I let it enquiry non zone restrict in local network. Thank you allow-query { any; }; recursion no; Send instant messages to your online friends
2015 Dec 01
3
mail_log plugin and uid=error in log file
Hi, I enabled notify and mail_log plugins to log the message uid for new emails delivered via LMTP. All works fine except that the uid is not always logged (see uid=error instead of uid=NUMBER) from dovecot.log: Dec 01 10:03:08 lmtp(alessio at domain.com): Info: copy from <lmtp DATA>: box=INBOX, uid=error, msgid=<14489594 at domain.com>, from="WordPress" <wordpress
2008 Oct 25
7
Routing of result not clear in ActionMailer
Dear all, I am trying to understand the following behaviour of the ActionMailer in Rails 2. I have an emailer_controller.rb class EmailerController < ApplicationController def send_mail Emailer::deliver_contact_email(params[:email]) end end I have a model emailer.rb class Emailer < ActionMailer::Base def contact_email(email_params, sent_at = Time.now) @recipients =
2007 Oct 31
4
How you want BackgrounDrb to behave
Hi, Ok, As i promised.. I am working on new version of BackgrounDRB, which is getting close and will be out soon. I need some feedback from you guys. So, please reply back. The code has changed significantly and its no longer using DRB. But I will keep the name BackgroundRb. Ok, in new API, a worker looks like this: require "net/smtp" require "guid" class NewsletterWorker
2006 Apr 21
1
Question on Active Mailer
Hi I want to create send emails to users as soon as a product is created; So I created scaffold for Product and before as soon as I do the save I call my send_email method in another controller; Now I want to pass on the Product record we created. I tried sending the product as @product, :product,etc. (tried all) and none work; my idea is to get the product record and put it in the email
2017 Jun 01
0
[FORGED] Re: Question on function "scatterplot3d"
On 01.06.2017 10:03, Rolf Turner wrote: > On 01/06/17 19:54, Uwe Ligges wrote: >> A design flaw, whether the labels are cut depends somewhat on the >> sizce of the device, hence there is the argument >> >> y.margin.add >> >> add additional space between tick mark labels and axis label of the y >> axis >> >> for working around that
2011 Feb 24
8
current bind version
Hi. I have had an enquiry from the Network and Security guy. He wants to know why CentOS 5.5 /RHEL 5 is using a very old version of bind "bind-chroot-9.3.6-4.P1.el5_5.3" when the latest release that has many security fixes is on 9.7.3 . I understand that its to maintain a known stable platform by in introducing new elements etc .. Is there an official explanation / document that I can
2009 Jan 04
2
OT-ish: GPG problem
I'm asking here because it is the best resource I know for knowledgeable people. The problem in question occurs on my Fedora 9 box and Fedora 10 netbook, while another person, Chris, has the problem on a Mandriva 2009 box. Whatever is causing it, that leads me to think that it's not distro-specific. Both of us are using kmail. Kgpg sees and lists all the keys on my keyring.
2008 Aug 25
2
maths not working (can't get this)
I''ve got a few problems with this...Hopefully it''s cleaer what I''m trying to do (work out and display two prices, one discounted / one full). Be grateful for answers... The total price and discounted price are not calculated correctly and the duration is not coming through to the output page. --------------- class Course < ActiveRecord::Base has_one :enquiry
2004 Aug 06
2
adhoc streaming
<div style='background-color:'><DIV class=RTE>Hi there </DIV> <DIV class=RTE> I wonder if you can be of any help? I'm looking at streaming mp3 audio from a pc, over to a laptop. Communication will be through a wireless 802.11 b link. I have already configured the ip number and pinged them to ensure a connectionand have download the m3m mp3 encoder and
2007 Jun 24
6
mocking errors
What is the correct way to mock out the errors on a Rails model? I''m assuming i need to say @mock_thing = mock_model(Thing) @mock_thing_errors = mock("errors") @mock_thing_errors.should_receive(:full_messages).and_return("An error") @mock_thing.should_receive(:errors).and_return(@mock_thing_errors) Just wanted to check the best practice on this kind of thing and how
2004 Jan 27
4
WARNING. You tried to send a potential virus or unauthorised code
The Star Internet anti-virus service, powered by MessageLabs, discovered a possible virus or unauthorised code (such as a joke program or trojan) in an email sent by you. This email has now been quarantined and was not delivered. Please read this whole email carefully. It explains what has happened to your email, which suspected virus has been caught, and what to do if you need help. To
2007 Mar 01
2
Query about data manipulation
Hi Thanks much for the prompt response to my earlier enquiry on packages for regression analyses. Along the same topic(?), I have another question about which I could use some input. I am retreiving data from a MySQL database using RODBC. The table has many BLOB columns and each BLOB column has data in the format "id1 \t id2 \t measure \n id3 \t id4 \t measure...." (i.e. multiple rows
2006 Aug 02
10
Ruby deamon
We are building a web-based application with Ruby on Rails and MySQL backend. The client now wants us to add various workflow features that will eventually expand into SOAP web services. These workflow features include tasks such as automatically sending reminders for due tasks, or if a particular set of information hasn''t been logged by a certain time to automatically send an email
2009 Aug 01
23
Hi doubt in unit testing
def test_check_for_validity post=County.new(:name=>"myname",:description=>"mydesc") assert post.save end above is the method and when i run unit test it is saying as 1) Failure: test_check_for_validity(CountyTest) [/test/unit/county_test.rb:10]: <false> is not true. what does it say i cannot under stand please help -- Karthik.k Mobile -