Code cleanup

I am tossed an error by errormailer every time a new record is saved to
my ‘referral_notes’ model. The record is saved and the problem is simply
the informational error message that I am sent but I don’t get this type
of thing happening anywhere else in my application.

This is the error reported by ErrorMailer…

Message
undefined method `stringify_keys!’
for #
Location
/referral_notes/create?commit=
+Create+&referral_note=noteT%2FC
+from+BPI+re+Ct+status.+Per+Eulene%
2C+Ct+is+currently+at+the+Biltmore
+completing+paperwork+and+the%0D%
0Ateam+is+requesting+that+Ct+move+in
+9%2F28%2F07.+Spoke+with+PC+who
+confirmed+that+Ct+may+move+in+9%
2F28%2F07.%0D%0AFaxed+acceptance+to
+BPI+this
+date.+note_date2007-09-27&placement_id=779
Action
create
Controller
referral_notes
Query
commit=+Create+&referral_note=noteT%
2FC+from+BPI+re+Ct+status.+Per
+Eulene%2C+Ct+is+currently+at+the
+Biltmore+completing+paperwork+and
+the%0D%0Ateam+is+requesting+that+Ct
+move+in+9%2F28%2F07.+Spoke+with+PC
+who+confirmed+that+Ct+may+move+in
+9%2F28%2F07.%0D%0AFaxed+acceptance
+to+BPI+this
+date.+note_date2007-09-27&placement_id=779
Method
GET

[:referral_note][:note] field is a text_area field but obviously each
individual work is strung together.

The view code looks like this…

<%= start_form_tag :action => ‘create’,
:placement_id => params[:placement_id] %>

<td><%= toolbocks_date_select('referral_note', 'note_date')  %></td>
<td><%= text_area 'referral_note', 'note',
    :rows => '4', :columns => '256' %></td>

<%= submit_tag ' Create ' %> <%= end_form_tag %>

and the place in the controller code (very benign) where this
ErrorMailer message is generated is

def create
@referral_note = ReferralNote.new(params[:referral_note])

end

What am I missing?


Craig W. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs