similar to: RoutingError with RSpec Controller test on Scoped Route

Displaying 20 results from an estimated 1000 matches similar to: "RoutingError with RSpec Controller test on Scoped Route"

2012 Aug 17
3
Rails doesn't validate create_model or build_model (has_one association)
I''ve got User has_one Shop. Rails is not validating when I tried create_shop or build_shop, neither in the browser nor the rails console. My code: class Shop < ActiveRecord::Base attr_protected :user_id belongs_to :user validates_presence_of :name, :primary_address, :city, :country_code, :currency end class ShopsController < ApplicationController before_filter
2007 May 30
2
should_eql etc?
Hi, I''m trying the specs for restful_authentication I found here http://jonathan.tron.name/articles/2007/01/02/rspec-on-rails-restful- authentication It seems to use custom .should methods: should_eql, should_be_an_instance_of, should_redirect_to, should_be_success, should_not_be_nil, should_be_nil, should_not_be_nil, should_be_empty, should_be_success, should_not_change, and
2017 Feb 24
2
BUG or ???
Got a strange situation [ext-queues] ... exten => h,2,ExecIf($[${CALLERID(num)} = ' ']?Set(var29=${SHELL(curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{\"Phone\": ${FROMEXTEN}, \"Source\": \"asterisk\"}" "
2006 Dec 13
3
Testing has_many :through
I''m working with a has_many :through association, where a Member has_many Projects through ProjectViewers. The problem I''m running into is that Rails doesn''t load the association so line (3) fails until I explicitly access a member of the collection (in this case, I iterated it). Is there a better way? Thanks, Steve 1. assigns[:member].should_not_be_nil 2.
2007 Feb 01
3
should_redirect_to in rspec-0.8.0 / rspec_on_rails 1453
I have a spec: specify "a post with no user id should add a record" do post :edit_or_create, :user => {:login => ''joeschmoe'', :email => ''joe at shmoe.com'', :email_confirmation => ''joe at shmoe.com'', :full_name => ''Joe Schmoe''} assigns[:user].should_not_be_nil
2012 Jun 11
0
SSOAP Parameter Structures: Nested Arrays
Dear list, I've been using R for a while, but am new to web services. I'm a relatively novice programmer; advance apologies for incorrect terminology. I'm trying to send queries and get results back from a SOAP server, using the SSOAP package. My code contains sensitive API keys and URLs, and unfortunately I'm unable to share it uncensored. I have not been able to reproduce the
2013 Aug 29
4
Weird behaviour using ssl connection (OpenSSL::SSL::SSLError)
Hi guys when I execute the piece of code bellow on RoR console it works fine: url = URI.parse("https://us1.api.mailchimp.com/2.0/helper/ping") request = Net::HTTP::Post.new(url.path) http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request.body = "{\"apikey\": \"myapikey\"}" response = http.start
2010 Oct 05
0
Ruby with apache ActionController::RoutingError (No route matches "/"):
Hi! I an trying to setup ruby on rails with apache server on ubuntu server 10.04. I have followed toe guid on the ubuntu page. My main app is located in: /home/jonas/ruby/apps/rtest1/public and I created a symlink to /var/www/app using the following command: sudo ln -s /home/jonas/ruby/apps/rtest1/public /var/www/app I have also reconfigured the owner of the /home/jonas/ruby/apps/rtest1/
2007 Jun 26
1
ActionController::RoutingError (no route found to match "/ja
Hi All, I have an application running on mongrel. i am getting the access of application .but it seems that its not picking up stylesheets,javascript. My production.log contains the error: ActionController::RoutingError (no route found to match "/javascripts/application.js" with {:method=>:get}): i have all .ccs and .js file under public directory of application. Thanks in Advance for
2011 Nov 26
1
ActionController::RoutingError (No route matches [GET] "/image.jpg"):
I am using rails 3.1.3. Inside config/ application -> config.assets.enabled = true Inside development.rb -> config.assets.compress = false Inside production.rb -> config.serve_static_assets = false; config.assets.compile = false I have images placed in assets/images. If i do localhost:3000/assets/ image I get the image in the browser, but unfortunately, on the browser i am
2009 Jul 31
2
ActionController::RoutingError (No route matches "/say/hello" with {:method=>:get}):
Hello: I have found a whole lot of posts on this, however, none of them offer any sort of solution other than restarting the web server, which I can''t imagine everyone out there developing on Rails is doing. I am on page 40 of Agile Development with Rails 3rd edition and trying to get the missing template error to show but until I restart webrick I only get the following: Processing
2010 Oct 07
5
ActionController::RoutingError (No route matches "")
ActionController::RoutingError (No route matches "/atweet"): Unsure on why routing to my view isn''t working. controller appears to be functioning, however the view isn''t work, when I attempt to go to it, this happens... sniff... sniff.... help??? I don''t get routes.rb in rails... -- Posted via http://www.ruby-forum.com/. -- You received this message
2011 Apr 12
0
Suppress ActionController::RoutingError in logs
My rails log get chock a block with things like <<<<<<<<<<<< ActionController::RoutingError (No route matches "/admin/Y- ivrrecording.php" with {:method=>:get}): ... ActionController::RoutingError (No route matches "/manager/html" with {:method=>:get}): .. ActionController::RoutingError (No route matches "/webdav/test" with
2006 Jul 24
1
All functional tests fail with RoutingError
All, I''m using InstantRails 1.0 on Windows XP and all my functional (controller) tests fail with ActionController::RoutingError, although the actions work OK through a web server/browser. Here''s an example of an error: 1) Error: test_create(AdminControllerTest): ActionController::RoutingError: No url can be generated for the hash {:controlle r=>"admin",
2006 Feb 26
0
rescue_action with RoutingError not loading ApplicationController/ApplicationHelper
Why is it that when rescue_action is called with any exception except for RoutingError, "self" refers to a controller within my application, but when there''s a RoutingError, "self" refers to an object of ActionController::Base? This makes some sense because a "RoutingError" implies that no controller was found to process the request. However, I am trying to
2006 Mar 07
2
webrick RoutingError
problem: webrick will start a rails server, but I cannot access my application. I get the error: Processing Base#index (for 127.0.0.1 at Tue Mar 07 19:16:58 CET 2006) Parameters: {} ActionController::RoutingError (Recognition failed for "/keywordeditor"): my application is called keywordeditor. I am starting the server from the correct place with the correct command (I already
2007 Feb 08
0
ActionController::RoutingError in actionpack-1.13.2
The specific error is: ActionController::RoutingError (no route found to match "/application/setservice" with {:method=>:post}) With actionpack-1.12.5 the default route handled /application/setservice. I have found a workaround by adding the route map.connect ''application/setservice'', :controller=>''application'',
2008 Oct 17
0
RoutingError from css background image url
In my css file, I have a css element that has a background image that''s defined as background: url(/images/global/tab-arrow.gif) no-repeat 16px 8px ; This throws a Routing Error when an element with that class gets rendered ActionController::RoutingError (No route matches "/images/" with {:domain=>"localhost", :method=>:get, :subdomain=>nil,
2006 Mar 28
2
Newbie question - ActionController::RoutingError
When i run my server and just chk in browser i get --------------------------------------------------- ActionController::RoutingError (Recognition failed for "/rails_info/properties"): /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:488:in `recognition_failed''
2010 Apr 26
0
ActionController::RoutingError
Hi All, I am just learning Rails. I had encountered a routing error, though I think I have specified the correct rules in the routing.rb. I have attached the code. Please help routing.rb map.connect '':controller/:action'' map.connect '':controller/:action/:id'' map.connect '':controller/:action/:id.:format'' Controller class