search for: ads_controller

Displaying 2 results from an estimated 2 matches for "ads_controller".

Did you mean: ad_controller
2010 Jun 21
4
Unknown action No action responded to 2. Actions: show
...tionController::Routing::Routes.draw do |map| map.connect ''/ads/id'', :controller=>''ads'', :action=>''show'' map.connect '':controller/:action/:id'' map.connect '':controller/:action/:id.:format'' end 2- ads_controller.rb class AdsController < ApplicationController def show @ad = Ad.find(params[:id]) end end 3- show.html.erb <html> <head> <title><%= @ad.name %></title> </head> <body> <p> <b>Name: </b><%= @ad. name %> </p>...
2013 Nov 22
2
Cancan Rspec load_and_authorize_resource
Hello! While running bundle exec rake, I receive following error (see in attached file) However, my tests are steel passing with command rspec spec/controllers/ Some info: ads_controller.rb: class AdsController < ApplicationController load_and_authorize_resource except: :create end ads_controller_spec.rb: require ''spec_helper'' describe AdsController do render_views describe ''Guest role'' do it "should not display link to new...