[Rails] Re: ROUTING ERROR" "No route matches [POST] "/signup - addendum to previous post

2016-07-22 Thread Howard Gilbert
On Thursday, 21 July 2016 16:36:24 UTC+1, Howard Gilbert wrote: > > Where I have said pressing "Signup" I should have said pressing "Signup" > filling in the form and then pressing "Create my Account" > The original post, to which this adds, seems to not have appeared. So this post should be

Re: [Rails] Re: ROUTING ERROR" "No route matches [POST] "/signup - addendum to previous post

2016-07-22 Thread Colin Law
On 22 July 2016 at 15:06, Howard Gilbert wrote: > > > On Thursday, 21 July 2016 16:36:24 UTC+1, Howard Gilbert wrote: >> >> Where I have said pressing "Signup" I should have said pressing "Signup" >> filling in the form and then pressing "Create my Account" > > > The original post, to which this a

[Rails] Re: Routing error

2016-05-12 Thread Neo Elit
Your PapTagsController should be inside monitor module. I don't how it worked in local server without that. file: /app/controllers/monitor/pap_tags_controller.rb module Monitor class PapTagsController < ApplicationController ... end end On Thursday, May 12, 2016 at 6:19:23 PM UTC+5:30

[Rails] Re: Routing Error uninitialized constant TowcompaniesController

2016-02-27 Thread Charles Hoff
I felt this one covered alot of important things, Im using it as a baseline to build out something custom that I am doing (or at least trying). https://www.youtube.com/watch?v=AMai9EZesXY Johnny Hu wrote in post #1181710: > The snake case in your controller file name should be fine. What >

[Rails] Re: Routing Error uninitialized constant TowcompaniesController

2016-02-27 Thread Johnny Hu
The snake case in your controller file name should be fine. What tutorial are you using by the way? Is it online? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an

[Rails] Re: Routing Error uninitialized constant TowcompaniesController

2016-02-27 Thread Charles Hoff
Thats what it was, had to change both resources and root to read "tow_companies". Appreciate your help and help, thanks guys! Walter Davis wrote in post #1181708: > Yes, you have to have tow_companies, not towcompanies in the resources: > line. > > Read up on how Rails ties everything together wi

[Rails] Re: Routing Error uninitialized constant TowcompaniesController

2016-02-27 Thread Charles Hoff
Tried restarting it, same thing, also tried the two things you mentioned and get the same result. No idea why. I posted the controller above like you requested, does it matter that the actual controller file name is "tow_companies_controller.rb"? NOt sure if the underscores affect anything.

[Rails] Re: Routing Error uninitialized constant TowcompaniesController

2016-02-27 Thread Johnny Hu
Secondarily, did you have a web server running already? If so, maybe try restarting it? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk

[Rails] Re: Routing Error uninitialized constant TowcompaniesController

2016-02-27 Thread Johnny Hu
This might not affect anything but can you see if the error happens if you remove "resources :towcompanies", or reorder so the line with the root is first? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group

[Rails] Re: Routing Error uninitialized constant TowcompaniesController

2016-02-27 Thread Charles Hoff
class TowCompaniesController < ApplicationController def index end end Johnny Hu wrote in post #1181703: > Can you post the contents from the controller in question? > > On Saturday, February 27, 2016 at 10:37:32 AM UTC-8, Ruby-Forum.com User -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Routing Error uninitialized constant TowcompaniesController

2016-02-27 Thread Johnny Hu
Can you post the contents from the controller in question? On Saturday, February 27, 2016 at 10:37:32 AM UTC-8, Ruby-Forum.com User wrote: > > Did that, still get the same error. > > > Walter Davis wrote in post #1181701: > > Sorry, autocorrect fail. The thing missing in yours was the to: key,

[Rails] Re: Routing Error uninitialized constant TowcompaniesController

2016-02-27 Thread Charles Hoff
Did that, still get the same error. Walter Davis wrote in post #1181701: > Sorry, autocorrect fail. The thing missing in yours was the to: key, not > the value. Just add the to: part to what you had. > > Walter -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: Routing Error uninitialized constant TowcompaniesController

2016-02-27 Thread Charles Hoff
Appreciate your help, root to: 'towcompanies#index' (Still generates the same error) root to: 'tow companies#index' ('tow companies' is not a supported controller name. ) Anything else I could be missing? -- Posted via http://www.ruby-forum.com/. -- You received this message because you a

[Rails] Re: Routing error: no route matches contoller works. Route exists though

2012-06-05 Thread Martyn W.
Martyn W. wrote in post #1063175: > I have a fairly straight forward rails app, version 3.2. When I try to > create a Work instance, with deliberately invalid fields from a form, I > get a routing error: > > No route matches {:controller=>"works"} > > This does not happen when I try the same te

Re: [Rails] Re: Routing error: no route matches contoller works. Route exists though

2012-06-05 Thread Jeremy Walker
On 5 June 2012 18:08, Martyn W. wrote: > Hassan Schroeder wrote in post #1063180: > > On Tue, Jun 5, 2012 at 9:56 AM, Martyn W. wrote: > > > >> I dont understand why after failing the save in the controller and > >> trying to render "new" it would give me a route matching error. Any > >> ideas?

[Rails] Re: Routing error: no route matches contoller works. Route exists though

2012-06-05 Thread Martyn W.
Hassan Schroeder wrote in post #1063180: > On Tue, Jun 5, 2012 at 9:56 AM, Martyn W. wrote: > >> I dont understand why after failing the save in the controller and >> trying to render "new" it would give me a route matching error. Any >> ideas? > > Yes - look at the log for that request :-) > > --

[Rails] Re: Routing error (route not found) but only for destroy action.

2011-08-23 Thread Frederick Cheung
On Aug 23, 1:49 am, 7stud -- wrote: > > > or polymorphic_path(item_to_delete) (which is what gets called if you > > do button_to('delete', item_to_delete, :method => 'delete') ) > > So what you are saying is that rails automatically does all that for you > under the hood--if you specify a model o

[Rails] Re: Routing error (route not found) but only for destroy action.

2011-08-22 Thread 7stud --
Frederick Cheung wrote in post #1017860: > On Aug 22, 1:28pm, 7stud -- wrote: > >> Once you have a way to execute a method when you have the name of the >> method as a string, you can get creative: >> >> model = item_to_destroy.class.to_s.downcase >> >> self.send("#{model}_path", item_to_delete) >

[Rails] Re: Routing error (route not found) but only for destroy action.

2011-08-22 Thread Frederick Cheung
On Aug 22, 1:28 pm, 7stud -- wrote: > Once you have a way to execute a method when you have the name of the > method as a string, you can get creative: > > model = item_to_destroy.class.to_s.downcase > > self.send("#{model}_path", item_to_delete) > or polymorphic_path(item_to_delete) (which is

[Rails] Re: Routing error (route not found) but only for destroy action.

2011-08-22 Thread 7stud --
Stefano wrote in post #1017840: > Hi guys > > I have many different models and I want to reuse the same code for the > delete button. > So in my helper i have: > > def delete_button(item_to_delete) > button_to t('buttons.delete'), :action => "destroy", :controller > => item_to_delete.class.to_s

[Rails] Re: Routing error (route not found) but only for destroy action.

2011-08-22 Thread Frederick Cheung
On Aug 22, 12:48 pm, Stefano wrote: > Hi guys > > I have many different models and I want to reuse the same code for the > delete button. > So in my helper i have: > > def delete_button(item_to_delete) >     button_to t('buttons.delete'), :action => "destroy", :controller > => item_to_delete.cla

[Rails] Re: Routing Error

2011-04-28 Thread Ar Chron
amritpal p. wrote in post #995520: > On Apr 28, 3:25am, Colin Law wrote: >> >> > root :to => "say#hello" >> >> So you think that the above line, which says route '/' to say#hello' >> is going to route /say/goodbye somewhere? > No it will not route to /say/goodbye,but it will route to

[Rails] Re: Routing Error

2011-04-28 Thread amrit pal pathak
On Apr 28, 3:25 am, Colin Law wrote: > On 28 April 2011 02:37, amrit pal pathak wrote: > > > > > > > > > > > > > On Apr 27, 10:52 am, Pale Horse wrote: > >> > amritpal p. wrote in post #995323: > > >> > class SayController < ApplicationController > >> >  def hello > >> >   @timee = Time.now >

[Rails] Re: Routing Error

2011-04-28 Thread Pale Horse
> amritpal p. wrote in post #995439: > >> Instead of Goodbye, use <%= link_to >> "Goodbye", :action => "goodbye" %> > > It didn't help, error says: > No route matches {:controller=>"say", :action=>"goodbye"} Of course it didn't, but you are working in a Rails environment so you ought to be using

Re: [Rails] Re: Routing Error

2011-04-28 Thread Colin Law
On 28 April 2011 02:37, amrit pal pathak wrote: > > > On Apr 27, 10:52 am, Pale Horse wrote: >> > amritpal p. wrote in post #995323: >> >> > class SayController < ApplicationController >> >  def hello >> >   @timee = Time.now >> >  end >> >  def goodbye >> >> >  end >> > end >> >> > /app/views/sa

[Rails] Re: Routing Error

2011-04-27 Thread amrit pal pathak
On Apr 27, 10:52 am, Pale Horse wrote: > > amritpal p. wrote in post #995323: > > > class SayController < ApplicationController > >  def hello > >   @timee = Time.now > >  end > >  def goodbye > > >  end > > end > > > /app/views/say/hello.html.erb looks like: > > > It is now <%= @timee %> > > Go

[Rails] Re: Routing Error

2011-04-27 Thread Pale Horse
> amritpal p. wrote in post #995323: > > class SayController < ApplicationController > def hello > @timee = Time.now > end > def goodbye > > end > end > > /app/views/say/hello.html.erb looks like: > > It is now <%= @timee %> > Goodbye Instead of Goodbye, use <%= link_to "Goodbye", :action =

[Rails] Re: Routing Error

2011-04-27 Thread amrit pal pathak
very strange again !! say_controller.rb looks like: class SayController < ApplicationController def hello @timee =Time.now end def goodbye end end /app/view/say/hello.html.erb looks like: It is now <%= @timee%> Goodbye /app/view/say/goodbye.html.

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 12:09 pm, Pale Horse wrote: > > amritpal p. wrote in post #995070: > > Generated a controller "rails generate controller say" and then added > > a method to id named hello as. > >  def hello > >  end > >                             Made a file /app/view/say/hello.html.erb > > as "sudo

[Rails] Re: Routing Error

2011-04-26 Thread Pale Horse
> amritpal p. wrote in post #995070: > Generated a controller "rails generate controller say" and then added > a method to id named hello as. > def hello > end > Made a file /app/view/say/hello.html.erb > as "sudo gedit hello.html.erb" and add follwoing to it > > >

[Rails] Re: Routing Error

2011-04-26 Thread Pale Horse
> amritpal p. wrote in post #995117: > >> Please paste your routes.rb file here or use http://pastie.org/ if it's >> too long. > > Age::Application.routes.draw do > root :to => "say#hello" > # See how all your routes lay out with "rake routes" > end > > Amrit pal What is the output of rake route

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 10:01 am, Pale Horse wrote: > > amritpal p. wrote in post #995108: > > >> On Apr 26, 9:26am, Pale Horse wrote: > >> the root route to take effect." > > it helped but without deleting that file and setting routing > > path to say controller "localhost:3000/say/hello" wasn't work? i th

[Rails] Re: Routing Error

2011-04-26 Thread Pale Horse
> amritpal p. wrote in post #995108: > >> On Apr 26, 9:26am, Pale Horse wrote: >> the root route to take effect." > it helped but without deleting that file and setting routing > path to say controller "localhost:3000/say/hello" wasn't work? i think > it should work > >> What happens if you match

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 9:26 am, Pale Horse wrote: > > amritpal p. wrote in post #995099: > > > ok .Done > > "root :to => "say#hello"". Still unsussess. > > No route matches "/say/hello" > > > Thank you. > > Quoted from the Rails guide: "You should put the root route at the end > of the file. You also need t

[Rails] Re: Routing Error

2011-04-26 Thread Pale Horse
> amritpal p. wrote in post #995099: > > ok .Done > "root :to => "say#hello"". Still unsussess. > No route matches "/say/hello" > > Thank you. Quoted from the Rails guide: "You should put the root route at the end of the file. You also need to delete the public/index.html.erb file for the root rou

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 8:31 am, Colin Law wrote: > On 26 April 2011 13:22, amrit pal pathak wrote: > > > > > On Apr 26, 7:54 am, Frederick Cheung > > wrote: > >> On 26 Apr 2011, at 10:51, amrit pal pathak > >> wrote: > > >> > Generated a controller "rails generate controller say" and then added > >> > a

Re: [Rails] Re: Routing Error

2011-04-26 Thread Colin Law
On 26 April 2011 13:22, amrit pal pathak wrote: > > > On Apr 26, 7:54 am, Frederick Cheung > wrote: >> On 26 Apr 2011, at 10:51, amrit pal pathak wrote: >> >> > Generated a controller "rails generate controller say" and then added >> > a method to id named hello as. >> >> You need to add a route

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 7:54 am, Frederick Cheung wrote: > On 26 Apr 2011, at 10:51, amrit pal pathak wrote: > > > Generated a controller "rails generate controller say" and then added > > a method to id named hello as. > > You need to add a route to the action. Colin discussed this with you at some > leng

[Rails] Re: Routing Error

2011-04-26 Thread Tim Shaffer
It looks like you were trying to access "/say/hello.html.erb" as the URL rather than "say/hello" -- 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

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
Please somebody help me. -- 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.

[Rails] Re: Routing error with OmniAuth

2011-04-14 Thread skt
On Apr 14, 7:28 pm, Phil Crissman wrote: > Phil > > > > > > > > > > On Thu, Apr 14, 2011 at 6:29 PM, skt wrote: > > Hello, > > > I am trying to use OmniAuth with Devise and I am stumbling on some > > initial step. When I go to localhost:3000/auth/twitter I get a routing > > error > > > No route

[Rails] Re: Routing Error : No route matches "/" (for "Hello World!" action)

2011-04-07 Thread Bruce Wilson
On Apr 7, 2:16 pm, Frederick Cheung wrote: > On Apr 7, 10:02 pm, Bruce Wilson wrote: > > > > > > > > > On Apr 7, 11:17 am, mainguy wrote: > > > > I don't see that you've routed anything to the '/' path. > > > > Your route requires the controller to be in the path. > > > > First step would be to

[Rails] Re: Routing Error : No route matches "/" (for "Hello World!" action)

2011-04-07 Thread Frederick Cheung
On Apr 7, 10:02 pm, Bruce Wilson wrote: > On Apr 7, 11:17 am, mainguy wrote: > > > > > > > I don't see that you've routed anything to the '/' path. > > > Your route requires the controller to be in the path. > > > First step would be to uncomment this > >  # You can have the root of your site r

[Rails] Re: Routing Error : No route matches "/" (for "Hello World!" action)

2011-04-07 Thread Bruce Wilson
On Apr 7, 11:17 am, mainguy wrote: > I don't see that you've routed anything to the '/' path. > > Your route requires the controller to be in the path. > > First step would be to uncomment this >  # You can have the root of your site routed with "root" >   # just remember to delete public/index.ht

[Rails] Re: Routing Error : No route matches "/" (for "Hello World!" action)

2011-04-07 Thread mainguy
I don't see that you've routed anything to the '/' path. Your route requires the controller to be in the path. First step would be to uncomment this # You can have the root of your site routed with "root" # just remember to delete public/index.html. # root :to => "welcome#index" replacing '

[Rails] Re: Routing Error : No route matches "/" (for "Hello World!" action)

2011-04-07 Thread Frederick Cheung
On Apr 7, 6:51 pm, Bruce Wilson wrote: > My routes.rb reads at the top: > > Hello::Application.routes.draw do >   match ':controller(/:action(/:id(.:format)))' > > and then all the commented material it comes with and an "end" at the > end of the file. > > But when I typehttp://localhost:3000int

[Rails] Re: Routing error

2011-01-26 Thread Kostas L.
Hi Marnen, i have created a projects controller with a field called status. The "status" have the following values: "suggested", "inprogress" and "finished". I want to be able to use these actions: project/suggested/new project/suggested/1/edit project/suggested/assign_to_student ... ... project/fi

[Rails] Re: Routing error

2011-01-26 Thread Marnen Laibow-Koser
Kostas Lps wrote in post #976978: > Hi guys, > i have a model named "project" and i have created routes namespace: > namespace :project do > resources :inprocess do > get 'assign', :on => :collection > end > resources :suggested do > get 'select_list', :on => :collection >

Re: [Rails] Re: Routing error

2011-01-25 Thread loganathan sellappa
Try this route format: > namespace :project do >resources :inprocess do > collection do > :get => 'assign' >end >end >resources :suggested do >collection do > :get => 'select_list' > :post => 'select_list' end

Re: [Rails] Re: Routing error

2011-01-25 Thread loganathan sellappa
namespace :project do resources :inprocess do collection do get => 'assign' end resources :suggested do get 'select_list', :on => :collection post 'select_list', :on => :collection end resources :finished end -- You received this message because you are subsc

[Rails] Re: Routing error

2011-01-25 Thread Kostas L.
Any ideas guys??? I would appreciate any suggestion! Regards Kostas -- 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 ru

[Rails] Re: Routing Error

2010-12-06 Thread Priya Buvan
Hi Kannav, Thank you for your support. I have mistyped url in routes, so the issue arose. Now it is solved. Thanks, Buvana Kannav R. wrote in post #966458: > please post some code here yours controllers index method and routs.rb > line which contains this URL > > On Mon, Dec 6, 2010 at 3:35 PM

[Rails] Re: Routing Error

2010-08-20 Thread Adam
I can generate dispatch with rake rails:update:generate_dispatchers command -- 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-t...@googlegroups.com. To unsubscribe from this group, send email

[Rails] Re: Routing Error

2010-08-20 Thread Adam
Bluehost On aug. 20, 16:58, Frederick Cheung wrote: > On Aug 20, 2:23 pm, Adam wrote: > > > Hi! > > I deployed my app in my shared hosting. If I open dispatch.fcgi, i get > > this error: > > >     Routing Error > > > No route matches "/public/dispatch.fcgi" with {:method=>:get} > > Before this a

[Rails] Re: Routing Error

2010-08-20 Thread Frederick Cheung
On Aug 20, 2:23 pm, Adam wrote: > Hi! > I deployed my app in my shared hosting. If I open dispatch.fcgi, i get > this error: > >     Routing Error > > No route matches "/public/dispatch.fcgi" with {:method=>:get} > Before this app works fine in localhost. Whats wrong? How is the app hosted? If

[Rails] Re: Routing error in Rails 3

2010-03-21 Thread rjunee
Turns out this was caused because my controller was singular (ProspectController) instead of plural (ProspectsController). On Mar 20, 12:42 pm, rjunee wrote: > I use: > > <% form_for @prospect do |f| %> > > which generates: > > method="post"> > > Cheers, > Ryan > > On Mar 20, 5:31 am, Conrad Tay

[Rails] Re: Routing error in Rails 3

2010-03-20 Thread rjunee
I use: <% form_for @prospect do |f| %> which generates: Cheers, Ryan On Mar 20, 5:31 am, Conrad Taylor wrote: > On Sat, Mar 20, 2010 at 1:52 AM, rjunee wrote: > > I'm hoping someone can advise me on how to debug this routing error. > > > My routes.rb includes: > >  resources :prospects, :

Re: [Rails] Re: Routing Error on rails3

2010-03-18 Thread Felipe Rodrigues
Rails 3 doesn't come with a generic rout mapping for controllers. The generator for models or scaffold will add the models as resources routes, so it will be RESTfull by default. It means that in any new rails 3 app, you will have to explicitly change the routes.rb to add the routes that are n

[Rails] Re: Routing Error on rails3

2010-02-26 Thread Ugis Ozols
Hello, Here's how your routes.rb file should like for that /pages/home route to work: http://gist.github.com/316367 In rails 3 rule for catching non-rest routes is deprecated so it's commented out in routes.rb. You can read about it in Rails 3.0 Release Notes - http://guides.rails.info/3_0_releas

[Rails] Re: Routing Error on rails3

2010-02-26 Thread John Wu
Thanks, How to uninstall it on mac? Can I have two version of Rails on same machine that I can choose one to run? Colin Law wrote: > On 26 February 2010 20:47, John Wu wrote: >> Hi All, >> >> I am new to Ruby on Rails and have rails3 installed. > > Did you really mean to start with rails 3? I

[Rails] Re: Routing Error on rails3

2010-02-26 Thread John Wu
Thanks for the reply. I didn't change rout file. SampleApp::Application.routes.draw do |map| end What do I need to add? Conrad Taylor wrote: > On Fri, Feb 26, 2010 at 12:47 PM, John Wu wrote: > >> I got >> >> Routing Error >> >> No route matches "/pages/contact" >> >> How can I fix this probl

[Rails] Re: Routing Error using Paperclip

2010-02-26 Thread Rajinder Yadav
Rajinder Yadav wrote: Rajinder Yadav wrote: For some reason I can't figure out why I am getting a routing error when I add Paperclip support. I have another test app when similar code is working. I created a new test app first without Paperclip support and it was doing the CRUD operation fin

[Rails] Re: Routing Error using Paperclip

2010-02-26 Thread Rajinder Yadav
Rajinder Yadav wrote: For some reason I can't figure out why I am getting a routing error when I add Paperclip support. I have another test app when similar code is working. I created a new test app first without Paperclip support and it was doing the CRUD operation fine. However when I added

[Rails] Re: Routing error

2009-11-16 Thread Todd A. Jacobs
On Mon, Nov 16, 2009 at 05:46:57AM -0800, Frederick Cheung wrote: > You're not really - you're setting it in the new method, but not in > the create one (or are you using the nested attributes stuff) ? If I call @note = @property.notes.new from the console, it properly populates the prope

[Rails] Re: Routing error

2009-11-16 Thread Frederick Cheung
On Nov 16, 12:45 pm, "Todd A. Jacobs" wrote: > On Mon, Nov 16, 2009 at 04:30:23AM -0800, Frederick Cheung wrote: > > The error is telling you that you called property_path(nil) - for > > whatever reason @note.property_id isn't set. > > Thanks. I had suspected as much, but still found the error

[Rails] Re: Routing error

2009-11-16 Thread Todd A. Jacobs
On Mon, Nov 16, 2009 at 04:30:23AM -0800, Frederick Cheung wrote: > The error is telling you that you called property_path(nil) - for > whatever reason @note.property_id isn't set. Thanks. I had suspected as much, but still found the error rather opaque. Still, I don't understand *why* it's bein

[Rails] Re: Routing error

2009-11-16 Thread Frederick Cheung
On Nov 16, 9:46 am, "Todd A. Jacobs" wrote: > The form displays correctly, but gives a routing error when saving. I'm > not sure what the error is trying to tell me. The error is telling you that you called property_path(nil) - for whatever reason @note.property_id isn't set. Fred > > This work

[Rails] Re: Routing Error if using ssl_required

2009-10-18 Thread Adam Meyer
Adam Meyer wrote: > Hi everyone, > > I am running into a routing error when activating ssl. > Everything works fine, when I put > > ssl_required :index > > into the controller I get a routing error > > Routing Error > > No route matches "/meinkwikit" with {:method=>:get} > > I installed the

[Rails] Re: Routing Error with Rails 2.3.3

2009-08-22 Thread CCH
Hi The routing error was caused by Linux case-sensitivity of file names. As such, this issue is closed. CCH http://cch4rails.blogspot.com On Aug 21, 10:33 am, CCH wrote: > Hi All > > This piece of code works in Rails 1.2 > > > But crashes in Rails 2.2.3 > > Processing ApplicationController

[Rails] Re: Routing error

2009-07-19 Thread Dwight Shackelford
James Byrne wrote: > Start here: > http://www.tutorialspoint.com/ruby-on-rails/rails-introduction.htm > > READ it all. It is old and out of date, but is so generic that this > barely matters. Then, either set up a Rails project from scratch > following the tutorial or connect with somebody t

[Rails] Re: Routing error

2009-07-19 Thread Dwight Shackelford
Marnen Laibow-Koser wrote: > Dwight Shackelford wrote: > [...] >> I started two weeks late into a 5 week class. > > A class in Rails development, I take it? > >> What you're witnessing is >> thrashing. > > Then please...talk to your instructor. Spend your time on that, not > just posting on

[Rails] Re: Routing error

2009-07-19 Thread James Byrne
Dwight Shackelford wrote: > > Well, cookbook is not one I wrote, but sometimes it is the only one > Mongrel will start for. I just thought that it started Mongrel. Didn't > know it was starting it specifically for a certain subdirectory. > > What is the mechanism behind that? What do I che

[Rails] Re: Routing error

2009-07-19 Thread Marnen Laibow-Koser
Dwight Shackelford wrote: [...] > I started two weeks late into a 5 week class. A class in Rails development, I take it? > What you're witnessing is > thrashing. Then please...talk to your instructor. Spend your time on that, not just posting on the list. Best, -- Marnen Laibow-Koser http:

[Rails] Re: Routing error

2009-07-19 Thread Dwight Shackelford
James Byrne wrote: > Dwight Shackelford wrote: >> >> InstantRails has a button that says "Start project with Mongrel". I'll >> sometimes hit that, just to get Mongrel listening, then from the web >> page pull up different projects. Not sure if that's the issue or not. > > Just to double chec

[Rails] Re: Routing error

2009-07-19 Thread James Byrne
Dwight Shackelford wrote: > > InstantRails has a button that says "Start project with Mongrel". I'll > sometimes hit that, just to get Mongrel listening, then from the web > page pull up different projects. Not sure if that's the issue or not. Just to double check the obvious, when you start

[Rails] Re: Routing error

2009-07-19 Thread Dwight Shackelford
James Byrne wrote: > Dwight Shackelford wrote: >> I wiped the logs, because data from differing projects were getting >> written to multiple logs, meaning a specific log under a specific >> subdirectory included data from other projects too. To get a clean run, >> I truncated them. Cookbook r

[Rails] Re: Routing error

2009-07-19 Thread James Byrne
Dwight Shackelford wrote: > I wiped the logs, because data from differing projects were getting > written to multiple logs, meaning a specific log under a specific > subdirectory included data from other projects too. To get a clean run, > I truncated them. Cookbook runs now. Phonebook did n

[Rails] Re: Routing error

2009-07-19 Thread Marnen Laibow-Koser
Dwight Shackelford wrote: > Hassan Schroeder wrote: >> On Sat, Jul 18, 2009 at 9:26 PM, Dwight >> Shackelford wrote: >> >>> No route matches "/cookbook" with {:method=>:get} >> >>> I don't even know how to start diagnosing this. >> >> Do all your unit/rspec tests still pass? > > Don't know wha

[Rails] Re: Routing error

2009-07-18 Thread Dwight Shackelford
Hassan Schroeder wrote: > On Sat, Jul 18, 2009 at 10:57 PM, Dwight > Shackelford wrote: > ActionController::RoutingError (No route matches "/cookbooks" with {:method=>:get}): >>> >>> OK, so what does `rake routes` for *this* application show? > >> (in C:/InstantRails/rails_apps/cookboo

[Rails] Re: Routing error

2009-07-18 Thread Hassan Schroeder
On Sat, Jul 18, 2009 at 10:57 PM, Dwight Shackelford wrote: >>> ActionController::RoutingError (No route matches "/cookbooks" with >>> {:method=>:get}): >> >> OK, so what does `rake routes` for *this* application show? > (in C:/InstantRails/rails_apps/cookbook) o-tay -- so *exactly* as the erro

[Rails] Re: Routing error

2009-07-18 Thread Dwight Shackelford
Hassan Schroeder wrote: > On Sat, Jul 18, 2009 at 10:46 PM, Dwight > Shackelford wrote: > >> Cookbook crashed again. �Here's the log, or the last part of the log: > >> ActionController::RoutingError (No route matches "/cookbooks" with >> {:method=>:get}): > > OK, so what does `rake routes` for

[Rails] Re: Routing error

2009-07-18 Thread Hassan Schroeder
On Sat, Jul 18, 2009 at 10:46 PM, Dwight Shackelford wrote: > Cookbook crashed again.  Here's the log, or the last part of the log: > ActionController::RoutingError (No route matches "/cookbooks" with > {:method=>:get}): OK, so what does `rake routes` for *this* application show? -- Hassan Sc

[Rails] Re: Routing error

2009-07-18 Thread Dwight Shackelford
> I wiped the logs, because data from differing projects were getting > written to multiple logs, meaning a specific log under a specific > subdirectory included data from other projects too. To get a clean run, > I truncated them. Cookbook runs now. Phonebook did not, and no log was > wri

[Rails] Re: Routing error

2009-07-18 Thread Dwight Shackelford
Hassan Schroeder wrote: > On Sat, Jul 18, 2009 at 9:26 PM, Dwight > Shackelford wrote: > >> No route matches "/cookbook" with {:method=>:get} > >> I don't even know how to start diagnosing this. > > Do all your unit/rspec tests still pass? Don't know what that means. I'm pretty new at this.

[Rails] Re: Routing error

2009-07-18 Thread Hassan Schroeder
On Sat, Jul 18, 2009 at 9:26 PM, Dwight Shackelford wrote: > No route matches "/cookbook" with {:method=>:get} > I don't even know how to start diagnosing this. Do all your unit/rspec tests still pass? Are there any errors in your logs? What does `rake routes` show? -- Hassan Schroeder

[Rails] Re: Routing Error

2009-06-18 Thread Tyler Knappe
Tyler Knappe wrote: > heimdull wrote: >> I think the issue is that you have a general route to the checkout >> controller and then you have a map.checkout route that is after the >> map.resources :checkout route. so when you use checkout_path you will >> get the edit task and not the checkout "rou

[Rails] Re: Routing Error

2009-06-18 Thread Tyler Knappe
heimdull wrote: > I think the issue is that you have a general route to the checkout > controller and then you have a map.checkout route that is after the > map.resources :checkout route. so when you use checkout_path you will > get the edit task and not the checkout "route" that you have setup...

[Rails] Re: Routing Error

2009-06-18 Thread Tyler Knappe
heimdull wrote: > I think the issue is that you have a general route to the checkout > controller and then you have a map.checkout route that is after the > map.resources :checkout route. so when you use checkout_path you will > get the edit task and not the checkout "route" that you have setup...

[Rails] Re: Routing Error

2009-06-17 Thread heimdull
I think the issue is that you have a general route to the checkout controller and then you have a map.checkout route that is after the map.resources :checkout route. so when you use checkout_path you will get the edit task and not the checkout "route" that you have setup... Try changing map.check

[Rails] Re: Routing Error with Passenger for Images and stylesheets

2009-06-01 Thread John T.
John T. wrote: > Oh, yeah, thought the config file would make it obvious. It's Apache > with Passenger. And I am pointing to the public directory: > > Directory "/home/me/public_html/myapp/current/public With thanks to Hongli Lai over on the Phusion Passenger Google Group, I got this sorted o

[Rails] Re: Routing Error with Passenger for Images and stylesheets

2009-05-31 Thread John T.
Steve Ross wrote: > You didn't say what server you were using, but you need to point > passenger to your *public* directory, not RAILS_ROOT as described > here: > http://www.modrails.com/documentation/Users%20guide%20Apache.html#_deploying_to_a_virtual_host_8217_s_root > > The Apache VirtualHos

[Rails] Re: Routing Error with Passenger for Images and stylesheets

2009-05-31 Thread s.ross
On May 31, 2009, at 8:30 AM, John T. wrote: > John T. wrote: >> Hi, >> >> I updated my server with the latest Rails (2.3.2) and Passenger >> (2.2.2). >> I also updated my Rails app to run under 2.3.2. It runs >> fine locally under Mongrel. >> >> The app is deployed into my own home directory un

[Rails] Re: Routing Error with Passenger for Images and stylesheets

2009-05-31 Thread John T.
John T. wrote: > Hi, > > I updated my server with the latest Rails (2.3.2) and Passenger (2.2.2). > I also updated my Rails app to run under 2.3.2. It runs > fine locally under Mongrel. > > The app is deployed into my own home directory under: (deployed via > Capistrano) > /users/me/public_htm

[Rails] Re: Routing Error

2009-05-06 Thread Sj Tib
> If you need more precise help, what web server and Ruby app server are > you using on the production server? Thanks and you are right. I need to configure my web server for this to follow symbolic links. I am using a Shared Accelerator on Joyent which has Apache as the web server and Mongrel

[Rails] Re: Routing Error

2009-05-06 Thread pharrington
It sounds like whatever webserver you're using on the Production machine (eg Apache, Nginx, etc) isn't actually handling the requests for the requests for the static javascripts/stylesheets. In the case of Apache (I don't have any real experience with anything else), make sure that Options +Follow

[Rails] Re: Routing Error

2009-05-06 Thread Sj Tib
I have over 3K files under javascripts (dojo library) that I don't want to deploy every time. Also, following the advice somewhere, given that javascripts/stylesheets/images don't change that often, it was recommended to put them in shared and create symbolic links from the deployed public dir

[Rails] Re: Routing Error

2009-05-06 Thread Freddy Andersen
Why are the stylesheets and javascripts directories symbolic links on production? On May 6, 12:46 pm, Sj Tib wrote: > Folks, > > I am a little lost on a Routing error in accessing my javascripts and > stylesheets files on production and hopefully someone can help me. > > Part of what is confusin

[Rails] Re: Routing error?

2009-04-09 Thread Ali
I figured it out. I was using form_tag :action => 'update' instead of form_for and that was causing the update statement to be incorrectly assembled. Thanks anyway!! On Apr 9, 11:38 am, Ali wrote: > I hope this will be an easy question... > > I'm trying to migrate from Rails 1.2 to 2.1, and I

[Rails] Re: Routing error in nested resources

2009-03-31 Thread Danimal
Hi Carlos! Because of the nesting. For example, I recently hacked up a version of Beast which is nested similarly to yours: Forums with many Topics with many Posts. Creating a new post has the following resource path: / forums/:forum_id/topics/:topic_id/posts/new Even though the topic_id in my ca

[Rails] Re: Routing error in nested resources

2009-03-30 Thread Carlos Santana
Carlos Santana wrote: > I am using nested resources as follows: > map.resources :topics do |topics| > topics.resources :items do |items| > items.resources :attachments > end > end > > When I generate a RESTful path for new item in the console: > app.new_topic_item_path(2) then I

  1   2   >