search for: methodnotallows

Displaying 13 results from an estimated 13 matches for "methodnotallows".

Did you mean: methodnotallowed
2009 Sep 19
2
MethodNotAllowed
I am trying to develop an application that allows users to submit articles and add information about the references they used when citing facts. I have the sources broken down into types, such as books, periodicals, web-sites, etc as single table inheritance on the sources table. Routes are nested so that :articles, :has_many => :sources When trying to edit a source, through the
2008 Aug 01
1
rescue_from ActionController::MethodNotAllowed
Hello, I''m having some trouble handing ActionController::MethodNotAllowed errors. Basically, the following is defined in my controllers, but obviously I''m missing something. Thanks in advance for any light you can shed. - - - - - - - - - - - - - - - - - - - - class UsersController < ApplicationController rescue_from ActionController::MethodNotAllowed, :with =>
2008 Jul 19
0
Why MethodNotAllowed all of a sudden?
I''m using shortcuts for login, logout etc. in routes.rb, for example: map.login ''login'', :controller => ''session'', :action => ''new'' When I access http://localhost:3000/login I get following exception: ActionController::MethodNotAllowed Only get, head, post, put, and delete requests are allowed. Does anyone know
2008 Aug 25
0
ActionController::MethodNotAllowed
Hello All, I m trying to use a form on my website to send an email. So my form goes like this : <% form_tag("/emailfeeder/create", :method => :post) do %> <tr> <td class="col1">To: </td> <td class="col2"><%= text_field_tag "recepient", @recepient.to_s, :disabled => true %></td>
2009 Sep 24
4
Action Controller ::MethodNotAllowed
Hi, Iam getting the following error ActionController::MethodNotAllowed Only get, put and delete requests are allowed. Actually, Iam trying to have multiple actions for a form to create new record. The actions for the form are cancel, save, publish and preview. here''s the config/routes.rb file code snippet for the relevant controller - Events map.resources :events, :member =>
2009 Jul 01
1
form_for resources with :singular specified
I fully suspect that I''m missing the point here somewhere so I promise I won''t be offended if you tell me I''m being daft. My application rents equipment ... not equipments. So I have the following: map.resources :equipment, :singular => :equipment_instance class Equipment < ActiveRecord::Base class EquipmentController < ApplicationController The
2007 Aug 13
1
SqueezeBox, a new Mongrel handler
SqueezeBox is a simple file system based routing framework for erubis templates. It aims for a couple of niceties as well: Instead of putting your logic inside your template, like you would with PHP, SqueezeBox recognizes a separate logic file to be called before it loads the template. This allows you room to load ActiveRecord models or do calculations. These logic files return to the webserver
2009 Feb 10
2
rescue_from for NoMethodError
Hi everyone, I was just trying to catch some exceptions in my app, for "Record Not Found" I used this in my application.rb file rescue_from ActiveRecord::RecordNotFound, :with => :record_not_found rescue_from ActionController::NoMethodError, :with => :show_error private def record_not_found render :text => "404 Not Found", :status =>
2009 May 02
10
Problem verifying routing error
Hi, When upgrading to rspec/rspec-rails 1.2.6 gem (from 1.1.12), I''m having a new problem verifying routes that should not exist. This is to support something like this in routes.rb: map.resources :orders do |orders| orders.resources :items, :except => [:index,:show] end I used to use lambda {}.should_raise( routing error ), but it stopped detecting any raised error.
2007 Jan 31
2
SystemStackError: stack level too deep
I''m testing the http module in console. BUt I got the following error. Anyone knows why? >> Net::HTTP.get_print ''www.google.com'', ''index.html'' SystemStackError: stack level too deep from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in `newobj'' from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
2007 Dec 28
1
Getting wrong route - fairly complete error description
...------ Unknown action No action responded to 9003000000071902 ------------------------------- So obviously the route is not tagging on the custom nested route I have made. So I disabled the "default" routes at the bottom and then I get: ------------------------------- ActionController::MethodNotAllows Only get, put, and delete requests are allowed Request Parameters: {"url"=>"/people/9/tasks/95/complete", "method"=>"put" } ------------------------------- Anyone got any ideas? I am sure it is something simple, but just tearing my hair out on th...
2007 Dec 28
1
Rake routes & console showing one thing, app doing another
...--------------------- Unknown action No action responded to 9 ------------------------------- So obviously the route is not tagging on the custom nested route I have made. So I disabled the "default" routes at the bottom and then I get: ------------------------------- ActionController::MethodNotAllows Only get, put, and delete requests are allowed Request Parameters: {"url"=>"/people/9/tasks/95/complete", "method"=>"put" } ------------------------------- Anyone got any ideas? I am sure it is something simple, but just tearing my hair out on th...
2008 Oct 11
5
Rails + Apache2 + Balancer Manager - PHP doesn't work
Hi I have a Debian Server and I managed that Ruby works with Apache2 and the Balancer Manager that listen to the Mongrel server. The Problem is that PHP files don''t work anymore. How do I have to configurate the Balance Manager that PHP is working again like without the Balance Manager? Greetings Andi -- Posted via http://www.ruby-forum.com/.