I want to be able to better understand rails routes file, but I can\'t figure it out by myself since it\'s too complex.
Here are my Rails 2 routes: map.with_options :controller => \'foo\', :conditions => { :method => :post } do |foo|
I\'m having trouble with my verbs in Rails... viewing a page for a resource (Dog) which has_many (Fleas). Embedded in dog\'s show.html.haml is a call to render @dog.fleas which automatically(?) finds
I\'ve been messing about in rails the past 2 months and so far everything\'s going well - but there\'s one area I\'m a little doubtful on.
By default the resources command generates the url for new action as {model}/new. Sending a path_names = {} hash doesn\'t change the base {model} according to the documentation. How would I go about r
Ok so i have an application that i use this jquery $(\"#band_events\").load(\"/load_events/\"+ escape($(\'#request_artist\').val()), successCallback );
I\'m developing simple image sharing site to train my ruby-on-rails-fu. I have following resources in my config/routes.rb file.
I am quite new to Rails3, I basically created a subscribers scaffolding, I only want my app to respond to new and create actions.
sessions_controller.rb def create if user = User.authenticate(params[:login], params[:password]) session[:user_id] = user.id
I have a User class andmap.resources :users in my routes. If I create a link link_to @user.name, @user It will somehow automatically create a link to /users/3 where 3 is an ID of the user.