hi, i am new in ruby, i have to do the next

Send a hash (key are strings and values are booleans) to the view, show
it like check box in the view, using string like nome and the value like
check or not checked, and recover this hash modified to the controller
for work with it
so i wrote this


in the view

<%...@arquitectures.each do |key, value| %>
<%=key.to_s%> <%=check_box(key, value, {}, true, false) %>
<%end%></p>

in the controller

before_filter loadArchitectures #here load @architectures
 def create
   if request.post?
      begin
        @architectures.each do |key, value|
            if value
              newArchitecture=Architecture.new()
              newArchitecture.nombre=clave
              newarchitecture.project_...@project.id
              newArchitecture.save

            end
          end


But when i see the values of @architectures after request.post? they are
the originals values.
Some help please (and sorry for my english)
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to