[Rails] problem starting unicorn, says unicorn not installed but it is

2017-09-12 Thread Ben Edwards
Logfile is: ben@whatnow:~/eventpuddle/eventpuddle/rails/eventpuddle$ systemctl status unicorn_eventpuddle.service ● unicorn_eventpuddle.service - LSB: starts the unicorn app server Loaded: loaded (/etc/init.d/unicorn_eventpuddle; bad; vendor preset: enabled) Active: failed (Result: exit-co

Re: [Rails] routes

2017-09-12 Thread Rob Biedenharn
I'm removing most of the "noise" from your output and focussing on the gallery-relevant bits: > On 2017-Sep-12, at 17:29 , Joe Guerra wrote: > > here's the output of my routes... (sorry about the formatting) > > Prefix Verb URI Pattern > Controller#Action

Re: [Rails] Re: routes

2017-09-12 Thread Norbert Melzer
On 09/12/2017 11:02 PM, Colin Law wrote: > On 12 September 2017 at 02:15, Joe Guerra wrote: >> ... >> I'm using... in my routes file. >> >> get resources :gallery > Why is the 'get' there? I asked before, but that wasn't heard, perhaps increasing the noise might help? -- You received this mes

Re: [Rails] Re: routes

2017-09-12 Thread Joe Guerra
*here's the output of my routes... (sorry about the formatting)* Prefix Verb URI Pattern Controller#Action androids GET/androids(.:format) androids#index POST /androids(.:format) andro

Re: [Rails] unicorn/nginx rbdev seting ruby version

2017-09-12 Thread Walter Lee Davis
> On Sep 12, 2017, at 4:18 PM, Ben Edwards wrote: > > Thanks. OK, so if I do rbenv local in my app directory will unicorn use that > version to run unicorn when I do 'service unicorn_eventpuddle start '? > > I was using ' ruby server' from bash on my dev box and had the following in > my .ba

Re: [Rails] Re: routes

2017-09-12 Thread Colin Law
On 12 September 2017 at 02:15, Joe Guerra wrote: > ... > I'm using... in my routes file. > > get resources :gallery Why is the 'get' there? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop r

Re: [Rails] Re: routes

2017-09-12 Thread Joe Guerra
Thanks, I'll add the post the results of my routes tonight. (when I'm at home). On Tue, Sep 12, 2017 at 4:26 PM, Ben Edwards wrote: > +1 > > post output from '$ rails routes', it will really help people help you. > > also 'NoMethodError in Gallery#new sounds like the new method is missing > fro

Re: [Rails] Re: routes

2017-09-12 Thread Ben Edwards
+1 post output from '$ rails routes', it will really help people help you. also 'NoMethodError in Gallery#new sounds like the new method is missing from the Gallery controller so posting that would also be good. Ben On Tuesday, September 12, 2017 at 3:23:21 PM UTC+1, Colin Law wrote: > > On 1

[Rails] unknown error on line 11

2017-09-12 Thread fugee ohu
<% if @active_friend_request_pending.present? %> <%= " #{(t 'a_friend_request_you_sent_to')} #{@user.first_name} is pending" %> <% elsif @passive_friend_request_pending.present? %> <%= form_tag friend_request_accept_friendable_path(user_id: @user.id), method: :put, remote: true do %> <%=

Re: [Rails] unicorn/nginx rbdev seting ruby version

2017-09-12 Thread Ben Edwards
Thanks. OK, so if I do rbenv local in my app directory will unicorn use that version to run unicorn when I do ' service unicorn_eventpuddle start '? I was using ' ruby server' from bash on my dev box and had the following in my .bashrc so I used rbenv. export RBENV_ROOT=/usr/local/rbenv export

Re: [Rails] unicorn/nginx rbdev seting ruby version

2017-09-12 Thread Walter Lee Davis
If you are in the directory containing the application, you can use the rbenv local command to get and set the ruby version to use within the app. rbenv local 3.2.1 will set the ruby version. It does this by creating or modifying a .ruby-version file in the application root. Walter > On Sep 1

[Rails] unicorn/nginx rbdev seting ruby version

2017-09-12 Thread Ben Edwards
Hi, ive managed to get unicorn/nginx working (using https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-unicorn-and-nginx-on-ubuntu-14-04) and i am using rbenv. The setup used a .rbenv-vars configuration file in the ruby app directory. what I cant figure out is ho

Re: [Rails] Re: routes

2017-09-12 Thread Norbert Melzer
On 09/12/2017 05:22 PM, Joe Guerra wrote: > On Tue, Sep 12, 2017 at 10:21 AM, Colin Law > wrote: > > rails routes > will show you all configured routes, which may help > > yes, I know that.   :) But you did not understand… If you had shown the output, it might b

Re: [Rails] Re: routes

2017-09-12 Thread Joe Guerra
yes, I know that. :) On Tue, Sep 12, 2017 at 10:21 AM, Colin Law wrote: > On 12 September 2017 at 15:15, Joe Guerra wrote: > > RIght, I tried resources galleries, resources gallerys > > > > But all come up with other errors. My post controller and views work, > this > > gallery controller se

Re: [Rails] Re: routes

2017-09-12 Thread Colin Law
On 12 September 2017 at 15:15, Joe Guerra wrote: > RIght, I tried resources galleries, resources gallerys > > But all come up with other errors. My post controller and views work, this > gallery controller seems to look the same? (I don't get it). rails routes will show you all configured route

Re: [Rails] Re: routes

2017-09-12 Thread Joe Guerra
Doesn't running the scaffold command put the route in the routes file for you? On Tuesday, September 12, 2017 at 10:15:07 AM UTC-4, Joe Guerra wrote: > > RIght, I tried resources galleries, resources gallerys > > But all come up with other errors. My post controller and views work, > this galle

Re: [Rails] Re: routes

2017-09-12 Thread Joe Guerra
RIght, I tried resources galleries, resources gallerys But all come up with other errors. My post controller and views work, this gallery controller seems to look the same? (I don't get it). Thanks, Joe On Tuesday, September 12, 2017 at 3:45:29 AM UTC-4, Norbert Melzer wrote: > > Am 12.09.201

[Rails] Re: Receiving Email in rails

2017-09-12 Thread Christophe
It would be simpler to use a specific domain or subdomain and use a 3rd party service that can handle that for you like mailgun (or something like that). Ex: http://mailgun-documentation.readthedocs.io/en/latest/quickstart-receiving.html It's really easy to deploy, nothing to maintain (they han

Re: [Rails] Re: routes

2017-09-12 Thread Norbert Melzer
Am 12.09.2017 um 03:15 schrieb Joe Guerra: > get resources :gallery You do have this in your routesfile literally? Seems invalid for me. Also As far as I can remember the convention, `resources` needs the plural name, not the singular name. But I haven't used rails since about 3.x-ish. -- You re