Re: [Rails] button_to question

2016-11-15 Thread Colin Law
On 15 Nov 2016 11:02 p.m., "Joe Guerra" wrote: > > OK, maybe I just need to see an example of how to call a method from a button-to button. No you need to show us what you have done and tell us what is not working. Which bit is failing? Is it getting to your controller

[Rails] Table already exists error

2016-11-15 Thread eye0rama
Hi all, I have been learning Rails by working through Carneiro and Barazi's *Beginning Rails 3*. This has went well despite the fact that I am using Rails 4.2.6. I hit a little snag when in chapter 5, which goes over associations, I tried to create a has_many association between a user and

Re: [Rails] button_to question

2016-11-15 Thread Joe Guerra
OK, maybe I just need to see an example of how to call a method from a button-to button. On Nov 16, 2016 1:22 AM, "Colin Law" wrote: > On 15 November 2016 at 16:55, Joe Guerra wrote: > >> ok, it's looking for a view at that route (or path), but my

Re: [Rails] button_to question

2016-11-15 Thread Colin Law
On 15 November 2016 at 16:55, Joe Guerra wrote: > ok, it's looking for a view at that route (or path), but my method says to > render a partial file (modal dialog page). > > Hmmm, did I miss something? > Without more information it is impossible to say. Colin > > On

Re: [Rails] button_to question

2016-11-15 Thread Joe Guerra
ok, it's looking for a view at that route (or path), but my method says to render a partial file (modal dialog page). Hmmm, did I miss something? On Tuesday, November 15, 2016 at 2:35:31 AM UTC-5, Colin Law wrote: > > On 14 November 2016 at 23:17, Joe Guerra > wrote: >

Re: [Rails] Very strange behavior of rails assets

2016-11-15 Thread Scott Jacobsen
Be sure you are running in production mode by setting the RAILS_ENV environment variable to production. On Nov 15, 2016 5:35 AM, "Karthikeyan A K" <77mi...@gmail.com> wrote: > Hello People, > > I have just deployed an app on Ubuntu 14.04, Rails 5.0.x, Puma, Nginx. > Even though I have

[Rails] Very strange behavior of rails assets

2016-11-15 Thread Karthikeyan A K
Hello People, I have just deployed an app on Ubuntu 14.04, Rails 5.0.x, Puma, Nginx. Even though I have precompiled assets I am getting the following output: And ofcourse no javascript and css is not loading and returning 404. In the very same server I have Rails 4.2.x app which works