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
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
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
>
> 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
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
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 =
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
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
8 matches
Mail list logo