Re: [Rails] RuntimeError (can't modify frozen String)

2018-12-03 Thread Walter Lee Davis
Sure. You just can't concat it like this.

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

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

Walter

> On Dec 3, 2018, at 1:12 PM, Joe Guerra  wrote:
> 
> 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?
> 
> On Monday, December 3, 2018 at 1:05:14 PM UTC-5, Joe Guerra wrote:
> hmm, maybe it doesn't like this?
> 
> 
> 
> add_breadcrumb 'category / ' << @title, categories_path
> 
> 
> 
> On Monday, December 3, 2018 at 1:00:40 PM UTC-5, Joe Guerra wrote:
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@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.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@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.


Re: [Rails] Alternative to Heroku

2018-12-03 Thread David Merrick
Definitely looking foe easy solutions to deploy.

Cheers Dave

On Sun, Dec 2, 2018 at 1:23 AM Hasan Diwan  wrote:

> Easier than using Ec2 is to use Elastic Beanstalk. There is a rails
> tutorial at
> https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ruby-rails-tutorial.html
> . Let me know if you can't make heads from tails of it. -- H
>
> On Fri, 30 Nov 2018 at 16:54, David Merrick  wrote:
>
>> Thats about what I'm looking for thanks
>>
>> Cheers Dave
>>
>> On Sat, Dec 1, 2018 at 1:29 PM Hassan Schroeder <
>> hassan.schroe...@gmail.com> wrote:
>>
>>> On Fri, Nov 30, 2018 at 12:28 PM David Merrick 
>>> wrote:
>>>
>>> > What are the alternatives to Heroku that are cheap and or that store
>>> your images as well?
>>>
>>> AWS S3 plus a small EC2 instance. And of course then you have a
>>> simple way to experiment w/ larger or smaller instances to tune your
>>> billing :-)
>>>
>>> (When I was using only S3 for personal storage I used to get AWS
>>> monthly bill of like $0.34 or so.)
>>>
>>> --
>>> Hassan Schroeder  hassan.schroe...@gmail.com
>>> twitter: @hassan
>>> Consulting Availability : Silicon Valley or remote
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBVWDnm6ZpAFsHkvTCtyd3nyi3JDy%2Bgj93hn%3D5Q4nT%3D0A%40mail.gmail.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Dave Merrick
>>
>> Daves Web Designs
>>
>> Website http://www.daveswebdesigns.co.nz
>>
>> Email merrick...@gmail.com
>>
>> Ph   03 216 2053
>>
>> Cell 027 3089 169
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbGa9wondmWt1fxL-3Mj3%3DwevsmcrE7h1ZO_4z7K1%3Druw%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> OpenPGP:
> https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
> If you wish to request my time, please do so using 
> *bit.ly/hd1AppointmentRequest
> *.
> Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
> *.
>
> Sent
> from my mobile device
> Envoye de mon portable
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWBCOSa9L5uZpYGrGmSpEwH4%2BxP6xeZwXO6oUp7a6BjFzA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email merrick...@gmail.com

Ph   03 216 2053

Cell 027 3089 169

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZ-nZa0BPGFXWrnzeY9MfRbXt1KCu9zrjDO5LUJLuK8pw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Re: RuntimeError (can't modify frozen String)

2018-12-03 Thread Joe Guerra
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?

On Monday, December 3, 2018 at 1:05:14 PM UTC-5, Joe Guerra wrote:
>
> hmm, maybe it doesn't like this?
>
>
> add_breadcrumb 'category / ' << @title, categories_path
>
>
>
> On Monday, December 3, 2018 at 1:00:40 PM UTC-5, Joe Guerra wrote:
>>
>> 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+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@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.


[Rails] Re: RuntimeError (can't modify frozen String)

2018-12-03 Thread Joe Guerra
hmm, maybe it doesn't like this?


add_breadcrumb 'category / ' << @title, categories_path



On Monday, December 3, 2018 at 1:00:40 PM UTC-5, Joe Guerra wrote:
>
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@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.


[Rails] Re: Alternative to Heroku

2018-12-03 Thread Douglas Lovell
For completeness, though I'm not sure I recommend others punish themselves 
thus:

I provision a Linode box using Ansible and deploy to it with Capistrano. S3 
bucket for attachments. It's quite cheap but also takes (or took up) a lot 
of my time. Tried the elastic beanstalk and felt totally baffled by the IAM 
security policies. Quite fine grained. That's just me. Had dozens of tabs 
open into the Amazon docs. Others might find it quite straightforward and 
convenient. For quick and easy, Heroku is great. If your time is precious, 
the cost is possibly worthwhile. And it's very reliable (as are the 
others). Supposedly scales nicely too. Haven't had the fortune to 
experience that.

Some might question why not EB when already using S3. Good question.

One more data point among many. Happy hosting!

Douglas

On Friday, November 30, 2018 at 5:28:34 PM UTC-3, David Merrick wrote:
>
> What are the alternatives to Heroku that are cheap and or that store your 
> images as well?
>
> Cheers Dave
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/a8800836-2ba3-4f79-ab24-e2203d18e495%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.