Hey
      I am using rails 3.0.7.I created two buttons simply as:
     <%= button_to "Great", :action => "click"%>
     <%= button_to "click me", :action => "work"%>

Router.rb file looks like:

Check::Application.routes.draw do
 # get "gne/clg"

  get "posts/index"
  resources :posts do
   end
#get 'posts/click'

ActionController::Routing::Routes.draw do |map|
map.root :controller => "posts", :action => "click"
end

ActionController::Routing::Routes.draw do |map|
map.root :controller => "posts", :action => "work"
end
 end

            When i click any button both respond to
/app/view/posts/click.html.erb while i have another file work.html.erb in
same directory for other button .Whats problem may be?

Amrit

-- 
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-talk@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