[Rails] image uploaders?

2018-02-25 Thread Joe Guerra
Hi, I've got 2 uploaders in my app. They are both uploading to aws s3 no problems. I'm able to display my photos on my show page using, but having no luck with my avatar. <%= image_tag @photo.image_url(:thumb).to_s %> <%= image_tag @user.image_url(:thumb).to_s %> I don't even know where .

Re: [Rails] command line erb?

2018-02-25 Thread Robert Phillips
On Sunday, 25 February 2018 18:18:37 UTC, Mauro Locatelli wrote: > > Ok I understand, sorry but I never need a thing such these so I can't help > you. > > Mauro > Yes ok you couldn't help with that but I found the answer eventually, I mentioned it in my post, so it's ok. Thanks.. -- You re

Re: [Rails] command line erb?

2018-02-25 Thread Hassan Schroeder
On Sun, Feb 25, 2018 at 10:14 AM, Robert Phillips wrote: > C:\blah>type a.erb > <%= 5 %> > C:\blah>erb a.erb > 5 > C:\blah> Well, you learn something every day 😀 In 10 years of developing Rails apps I've never had a use case that required that, but good to know... -- Hassan Schroeder

Re: [Rails] command line erb?

2018-02-25 Thread Mauro Locatelli
Ok I understand, sorry but I never need a thing such these so I can't help you. Mauro Il 25 feb 2018 7:14 PM, "Robert Phillips" ha scritto: > No not the rails console! > > ERB stands for Embedded Ruby! > > You know when you do rails generate controller abc def > > you get a file def.html.erb >

Re: [Rails] command line erb?

2018-02-25 Thread Robert Phillips
No not the rails console! ERB stands for Embedded Ruby! You know when you do rails generate controller abc def you get a file def.html.erb that's an ERB file, an Embedded Ruby file The contents of that file get preprocessed , such that anything outside of <%..%> gets outputted, and anything

Re: [Rails] command line erb?

2018-02-25 Thread Hassan Schroeder
On Sun, Feb 25, 2018 at 9:46 AM, Robert Phillips wrote: > No, ERB is not IRB. ERB is called Embedded Ruby, people often use it when > they use Rails. So what would a "command line ERB" do exactly? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan Consul

Re: [Rails] command line erb?

2018-02-25 Thread Mauro Locatelli
rails console? Il 25 feb 2018 6:46 PM, "Robert Phillips" ha scritto: > > > On Sunday, 25 February 2018 17:29:36 UTC, Hassan Schroeder wrote: >> >> On Sun, Feb 25, 2018 at 9:08 AM, Robert Phillips >> wrote: >> >> > Is there a command line ERB? >> >> I suspect you're looking for "irb" -- Interact

Re: [Rails] command line erb?

2018-02-25 Thread Robert Phillips
On Sunday, 25 February 2018 17:29:36 UTC, Hassan Schroeder wrote: > > On Sun, Feb 25, 2018 at 9:08 AM, Robert Phillips > > wrote: > > > Is there a command line ERB? > > I suspect you're looking for "irb" -- Interactive Ruby. > No, ERB is not IRB. ERB is called Embedded Ruby, people often u

Re: [Rails] command line erb?

2018-02-25 Thread Hassan Schroeder
On Sun, Feb 25, 2018 at 9:08 AM, Robert Phillips wrote: > Is there a command line ERB? I suspect you're looking for "irb" -- Interactive Ruby. > I am in windows, I don't know if there is one in linux but not in windows? > if perhaps the issue is different distros of ruby , I don't know which >

[Rails] command line erb?

2018-02-25 Thread Robert Phillips
Hi Is there a command line ERB? I've heard of one but if I look for an ERB executable I can't see one I am in windows, I don't know if there is one in linux but not in windows? if perhaps the issue is different distros of ruby , I don't know which distro I have / how to find out. Thanks --