[Rails] Rails or Ruby conference / group meeting in UK/Scotland?

2017-04-21 Thread Mugurel Chirica
Hello, Does anyone knows if there is any Rails/ Ruby / Web / SysOps conference this year in UK or Scotland? Any big user group meeting can work as well. Thank you very much. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

Re: [Rails] no method for nill class

2017-04-21 Thread Hassan Schroeder
On Fri, Apr 21, 2017 at 2:22 AM, Mugurel Chirica wrote: > Another very good option is to learn to use a debugger Another +1 for Pry -- absolutely an essential tool. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan Consulting

Re: [Rails] no method for nill class

2017-04-21 Thread Colin Law
On 21 April 2017 at 10:22, Mugurel Chirica wrote: > Another very good option is to learn to use a debugger (that can help you a > lot until you learn Ruby / Rails better, but it can be useful then as well), > is to have a look at Pry

Re: [Rails] Re: [QUESTION] How to have different routes ids on different routes for the same resources?

2017-04-21 Thread Maurizio De Santis
> > resources :posts, param: :slug FWIK this just changes the name of the parameter passed to the controller, so if you write post_path(Post.first) you will have a request like /posts/#{post.to_param} but in the controller instead of have param[:id] you have param[:slug] -- Maurizio De Santis

Re: [Rails] no method for nill class

2017-04-21 Thread Mugurel Chirica
Another very good option is to learn to use a debugger (that can help you a lot until you learn Ruby / Rails better, but it can be useful then as well), is to have a look at Pry https://github.com/deivid-rodriguez/pry-byebug or for ruby 1.9.3 https://github.com/nixme/pry-debugger. You will need

Re: [Rails] no method for nill class

2017-04-21 Thread Colin Law
On 21 April 2017 at 00:30, fugee ohu wrote: > In the snippet below,the last line causes the error; :showdate is > whitelisted, it's components appear just in the params list returned by the > browser The error's at the plus sign but not sure which of them > > @showday =

[Rails] form fields not in schema

2017-04-21 Thread batuhanwilhelm
You can still add unpersistent attributes to your model and validate them like any other attribute on schema. You should treat these params like any other param at controller and permit them. Add this to your model attr_accessor :some_attribute So then you can do

[Rails] Re: [QUESTION] How to have different routes ids on different routes for the same resources?

2017-04-21 Thread batuhanwilhelm
You can also do something like this If i get it right, resources :posts, param: :slug -- 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