Forum: Ruby on Rails Sending parameters for filtering

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Buntin, Seth - KATE (Guest)
on 2006-02-23 17:41
(Received via mailing list)
I have a many-to-many table I have standards that I want to assign to
resources.  In my form I have spit the form into two pages.  The first
page gets most of the information about the resource and stuff and I
want it to send two parameters to the next page so I can "filter" out
some of the standards.



I have this:



@resource = Resource.new(params[:resource])

    @resource.tag_with(@params[:tags])

    if @resource.save

      flash[:notice] = 'Resource was successfully created.'

      redirect_to :action => 'new_continued', :level => @params[:level],
:subject => @params[:contentarea]



But when I check my development log I see this:



SELECT * FROM core_contents WHERE (level = NULL AND subject = NULL)



How do I fix this?



Seth B.

Web Resources Coordinator

Kentucky Academy of Technology Education

Murray State University
This topic is locked and can not be replied to.