List Info

Thread: 'new_record' & 'inject'




'new_record' & 'inject'
user name
2006-10-27 21:07:04
Hi,

I'm new to Mephisto and have followed a number of tutorials
to get
Mephisto running under Textdrive (official and Old Dogs the
main
sources). Everything works bar two areas; sections and
articles.

I'm getting the "nil:NilClass" error for
'new_record'
(app/views/admin/sections/_form.rhtml);

<% form_remote_for :section,
:url => { :action => (section.new_record? ?
'create' : 'update'), :id
=> section }, :html => { :id => 'section-form' }
do |f| %>

obviously because section == nil

Similar error (for 'inject') for the
app/views/admin/articles/index.rhtml template.

I'm assuming its some setup/config fault.

Any help is appreciated


--~--~---------~--~----~------------~-------~--~----~
Mephisto: http://mephistoblog.com |
Mephisto Help: http://mephisto.stikipad
.com

To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http
://groups-beta.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )