#74 ✓resolved
joep

creating simple content model fails

Reported by joep | August 13th, 2010 @ 08:42 AM

The simple content module fails when creating a new field.

field_index should probably be converted to an integer somewhere.

Issue # 36 - reported

Reported By:

Administrative User

Location: cms:/website/simple_content/manage/new_field

Reported Type: auto

Behavior


A ActionView::TemplateError Exception occurred in manage#new_field

can't convert Fixnum into String
On line [#9](/projects/38599/tickets/9 "Ticket #9") of vendor/modules/simple_content/app/views/simple_content/manage/_edit_field.html.erb

6:
7:    <%= h fld.name %> (<%= ContentModel.content_field(fld.field_module,fld.field_type)[:description].t %>)
8:


9:
10:
11:
12:

vendor/modules/simple_content/app/views/simple_content/manage/_edit_field.html.erb:9:in `+'
vendor/modules/simple_content/app/views/simple_content/manage/_edit_field.html.erb:9
vendor/modules/simple_content/app/controllers/simple_content/manage_controller.rb:86:in `new_field'

* URL: http://www.campcreektest.com:3000/website/simple_content/manage/new...
* Parameters: {"action"=>"new_field", "authenticity_token"=>"OVoI9LNwBKdy3NiNb3/HkdXZP+tZkNNkjLsVQRVWlBY=", "field_index"=>"1", "path"=>[], "controller"=>"simple_content/manage", "add_field"=>{"name"=>"tex", "field_type"=>"content/core_field::string"}}
* Rails root: /Users/joe/src/Webiva
* User Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.11) Gecko/20100701 Firefox/3.5.11* Process: 66347
* Server :

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages