view file) to controller.
my view controller file is like
class ProjectStatusController < ApplicationController
@projects = Project.find(:all, :select => "name")
lookup = params[:project]
@rows = Project.find_by_lookup(lookup)
and view file is like
<% form_tag("project_status", :controller => "ProjectStatus", :action
=> "show", :method=>'get' ) do %>
<%= select_tag 'project',
=> "this.form.submit();" %>
<% end %>
@rows.each do |row|
<%= row[:name] %>
<% end %>
what i basically want to achieve is this - based on the selected value
from select tag i want to display information(on the same view page)
of selected item from the database
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 email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.