Split form values

i ve form like

<% form_tag ‘create’, :multipart => true do %>

Title: <%=text_field 'show','title'%>

Mobile Type: <%=text_field 'show','mobilename'%>

Price: <%=text_field 'show','price'%>

Description: <%=text_field 'show','description'%>

Image: <%= file_field 'upload','filename' %>

<%= submit_tag "Send Attachment" %> <% end %>

in my controller

def create
@show =Show.new(params[:show])

i need to split params[:show] values or pls help me how to upload this
file…

From http://api.rubyonrails.org

Syntax: file_field(object_name, method, options = {})

You should be doing file_field :show, :upload to parameterize it
within the ‘show’ object.

Also, just use <%form_for @show, do |f| %> … <% end %> instead of
qualifying each tag. You can then use f.text_field :mobile_name,
f.field_field :upload ,etc.