Discussion:
[Rails] Re: RuntimeError (can't modify frozen String)
Joe Guerra
2018-12-03 18:05:13 UTC
Permalink
hmm, maybe it doesn't like this?
I got this runtime error on Heroku. I don't know what's wrong, it has
been working fine.
It's coming from my categories controller / show view.
--
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+***@googlegroups.com.
To post to this group, send email to rubyonrails-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/95d8e5c5-a58e-4732-97f7-4be75a8a97e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Joe Guerra
2018-12-03 18:12:16 UTC
Permalink
Yes, that seems to have been the culprit. I commented it out. Is there a
better way to concat the category title to the breadcrumb?
Post by Joe Guerra
hmm, maybe it doesn't like this?
I got this runtime error on Heroku. I don't know what's wrong, it has
been working fine.
It's coming from my categories controller / show view.
--
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+***@googlegroups.com.
To post to this group, send email to rubyonrails-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1c72a6db-2107-46c9-80f6-ac47a2d27ecf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Walter Lee Davis
2018-12-03 22:14:46 UTC
Permalink
Sure. You just can't concat it like this.

add_breadcrumb ('category / ' + @title), categories_path

Or better, use "category / #{@title}" inline template syntax.

Walter
Yes, that seems to have been the culprit. I commented it out. Is there a better way to concat the category title to the breadcrumb?
hmm, maybe it doesn't like this?
I got this runtime error on Heroku. I don't know what's wrong, it has been working fine.
It's coming from my categories controller / show view.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1c72a6db-2107-46c9-80f6-ac47a2d27ecf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to rubyonrails-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/611AEE1E-2FED-4BD7-91A9-4C9FDDBCFE5C%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
Loading...