[Rails] Re: Questions about @dhh code on Writing Software Well for Controllers

2018-03-05 Thread Rob Jonson
the top example looks really clear to me. I can see immediately what it is doing and why. there is almost no duplication and it is doing 'controller-type' work. what don't you like about it? On Sunday, 4 March 2018 15:12:23 UTC, David McDonald wrote: > > I was struck recently by how simplified

[Rails] Re: Questions about @dhh code on Writing Software Well for Controllers

2018-03-05 Thread David McDonald
I guess I'm just looking at it from the idea of "less code is usually better code". And also I'm trying to learn from others that have a better skill set and/or experience than I do. But as I mentioned, perhaps I'm taking a snippet of code from one of his controllers that do not relate to

[Rails] Re: SEEKING RoR developers

2018-03-05 Thread Joe Guerra
How much experience are you looking for? On Monday, March 5, 2018 at 10:21:32 AM UTC-5, Sergio Lapenna wrote: > > Hi guys, > > we are looking for remote RoR developers to help us in the development of > the server side of our IoT technology. > > Best regards, > Sergio L. > Founder & CEO at RT >

[Rails] SEEKING RoR developers

2018-03-05 Thread Sergio Lapenna
Hi guys, we are looking for remote RoR developers to help us in the development of the server side of our IoT technology. Best regards, Sergio L. Founder & CEO at RT www.rtsrl.eu *Linkedin*: http://bit.ly/2oJqh99 *Location*: Italy *Languages*: Italian, English -- You received this message

Re: [Rails] SEEKING RoR developers

2018-03-05 Thread amitoj singh
I am interested Here's my CV https://drive.google.com/file/d/1dKVg5MNI-INypjoYQfSN1cEpCximjOTy/view?usp=drivesdk Linkedin- https://www.linkedin.com/in/singh-amitoj On 5 Mar 2018 20:50, "Sergio Lapenna" wrote: > Hi guys, > > we are looking for remote RoR developers to

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread Hassan Schroeder
On Mon, Mar 5, 2018 at 9:13 AM, tom wrote: > i have a couple of 'seo' routes, which are not responding well What does that mean? ( http://www.catb.org/esr/faqs/smart-questions.html ) -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread tom
getting 406 due to rails giving me ActionController::UnknownFormat and i dont know why. same routes(pattern) in a different controller work just fine. only difference is that the other one only does render, not repsond_to On Mon, Mar 5, 2018 at 12:29 PM, Hassan Schroeder <

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread tom
so how can i pass this along? why is it not assuming html? On Mon, Mar 5, 2018 at 12:53 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Mon, Mar 5, 2018 at 9:33 AM, tom wrote: > > getting 406 due to rails giving me ActionController::UnknownFormat > > and i

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread Hassan Schroeder
On Mon, Mar 5, 2018 at 9:33 AM, tom wrote: > getting 406 due to rails giving me ActionController::UnknownFormat > and i dont know why. Maybe because GET "/whatever/in/St.%20Peters" provides no information about the requested response format? > same routes(pattern) in a

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread Hassan Schroeder
On Mon, Mar 5, 2018 at 9:59 AM, tom wrote: > so how can i pass this along? why is it not assuming html? Because computers don't make assumptions?  Why are you telling it to respond differently depending on the format and then *not providing a format*?? -- Hassan

[Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread tom
HI, i have a couple of 'seo' routes, which are not responding well eg: match 'whatever/in/:seoterm' , as: 'seo_whatever _in' , :to => 'foos#index', via: [:get] , :mode=>{:x=>' whatever ',:y=>1} respond_to do |format| format.html { } format.js { } format.json {

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread tom
, :defaults => { :format => 'html' } fixed it thank you On Mon, Mar 5, 2018 at 1:15 PM, Hassan Schroeder wrote: > On Mon, Mar 5, 2018 at 9:59 AM, tom wrote: > > so how can i pass this along? why is it not assuming html? > > Because computers

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread Rob Biedenharn
> On 2018-Mar-5, at 13:15 , Hassan Schroeder wrote: > > On Mon, Mar 5, 2018 at 9:59 AM, tom wrote: >> so how can i pass this along? why is it not assuming html? > > Because computers don't make assumptions?  > > Why are you telling it to

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread Hassan Schroeder
On Mon, Mar 5, 2018 at 10:27 AM, tom wrote: > > , :defaults => { :format => 'html' } > fixed it Awesome! -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan Consulting Availability : Silicon Valley or remote -- You received this

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread tom
you are correct. the space and or the period was the problem here. ill try out different solutions now thx all! On Mon, Mar 5, 2018 at 2:15 PM, Rob Biedenharn wrote: > > > On 2018-Mar-5, at 13:15 , Hassan Schroeder > wrote: > > On Mon,