formtastic - :string field value as Array and not found-s

Posted by Alexey Poimtsev on Stack Overflow See other posts from Stack Overflow or by Alexey Poimtsev
Published on 2010-05-25T09:24:11Z Indexed on 2010/06/01 6:23 UTC
Read the original article Hit count: 274

Filed under:
|
|
|

Hi, is there any possibility to send from formtastic form value of :string field like

- semantic_form_for :project do |form|
 - form.inputs do
  = form.input :task_ids, :as => :string

as Array? Currently value of this field is sending as String and i'd like to no parse this string in controller.

Also, could you give me idea - if task with submitted id is not found - what is best way to catch this situation - validation in controller or what?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby