Re: [Rails] How to make Apache start Puma automaticaly on a Rails app

2013-07-28 Thread Exel Dev
Well my ideal situation would be Nginx with puma on the vps. However I couldn't get nginx to recognize the vhosts based on the blog articles I followed as examples, so I went to Apache/Passenger, but too slow. Then Apache/Puma, much faster. Thanks for your responses, can you point me to any art

Re: [Rails] How to make Apache start Puma automaticaly on a Rails app

2013-07-28 Thread Tamara Temple
On Jul 28, 2013, at 8:08 AM, Hassan Schroeder wrote: > On Sun, Jul 28, 2013 at 12:40 AM, Exel Dev wrote: >> Is there a way to get an Apache vhost to start Puma automatically on a Rails >> app? > > What is an "Apache vhost" ?? I hope this was just a joke. nginx is quite adept at dealing with

Re: [Rails] Multi-page blog posts

2013-07-28 Thread Tamara Temple
On Jul 28, 2013, at 4:30 PM, Fidel Viegas wrote: > Hi, everyone! > > It has been a while since I posted here, given that I get to find most of my > answers on google. However, there is one particular coding practice I am > after, for which I have thought of a solution, as well as found the ex

[Rails] Multi-page blog posts

2013-07-28 Thread Fidel Viegas
Hi, everyone! It has been a while since I posted here, given that I get to find most of my answers on google. However, there is one particular coding practice I am after, for which I have thought of a solution, as well as found the exact same solution for .Net. Basically, I am working with a

Re: [Rails] How to display the selected values from the drop down list menu in rails?

2013-07-28 Thread Hassan Schroeder
On Sun, Jul 28, 2013 at 11:38 AM, yash shah wrote: > I have created the drop down list for state and city. Now when the user > selects the state say florida and city say miami, I want to display these > names on the new page when the user clicks the search link. Using link_to, > I am not able to

Re: [Rails] HABTM Checkboxes

2013-07-28 Thread Walter Lee Davis
Have a search on Railscasts. This is covered there. Walter On Jul 28, 2013, at 12:36 PM, eireanngobrac...@gmail.com wrote: > I have a Course model which habtm categories. I am trying to have checkboxes > to add or delete categories from the new and update courses pages. > > Models: > > cours

[Rails] How to display the selected values from the drop down list menu in rails?

2013-07-28 Thread yash shah
Dear Guys, I have created the drop down list for state and city. Now when the user selects the state say florida and city say miami, I want to display these names on the new page when the user clicks the search link. Using link_to, I am not able to pass these names to the new page. Ideally thes

[Rails] HABTM Checkboxes

2013-07-28 Thread eireanngobrach87
I have a Course model which habtm categories. I am trying to have checkboxes to add or delete categories from the new and update courses pages. Models: course.rb # == Schema Information # # Table name: courses # # id :integer not null, primary key # course_number

[Rails] Re: New web server suggestions

2013-07-28 Thread Rob Daniels
thanks for the responses guys :) On Tuesday, July 23, 2013 8:37:51 AM UTC-4, Rob Daniels wrote: > I've been approved for a new Rails web server - any suggestions on > hardware, OS & setup? > > Rob > -- You received this message because you are subscribed to the Google Groups "Ruby on Rail

Re: [Rails] How to make Apache start Puma automaticaly on a Rails app

2013-07-28 Thread Hassan Schroeder
On Sun, Jul 28, 2013 at 12:40 AM, Exel Dev wrote: > Is there a way to get an Apache vhost to start Puma automatically on a Rails > app? What is an "Apache vhost" ?? > I'm installing Apache and Puma on a linux ubuntu 12.04 box, first I tried it > with Passenger but it seemed quite slow compared t

Re: [Rails] Partial js file with locals

2013-07-28 Thread Hans
The problem is now solved The correct use of locals should be $("<%=id%>").html("<%= escape_javascript(render(:partial=>'form'))%>"); and not $('"'+id+'"').html("<%= escape_javascript(render(: partial=>'form'))%>"); Den söndagen den 28:e juli 2013 kl. 12:56:19 UTC+2 skrev Colin Law: > > On 28 Ju

Re: [Rails] Partial js file with locals

2013-07-28 Thread Colin Law
On 28 July 2013 11:28, Hans wrote: > Colin > Thanks for your answere, but that was just a typo from me. The code has > :locals and :id When asking questions it is always a good idea to copy/paste then you are more likely to get helpful replies. Perhaps there are different typos in your code that

[Rails] Re: ActiveRecord's pluck gives an un-ordered list?

2013-07-28 Thread Frederick Cheung
> > Postgres documentation for LIMIT: > http://www.postgresql.org/docs/9.2/static/queries-limit.html > > I should look at the postgres/rails documentation more to see how limit > and pluck actually work! From what I see, my method orders all the rows > within postgres, postgres gets the ID co

[Rails] Is it possible to run Ruby and Rails off of local folder without installing them first on Mac OS X?

2013-07-28 Thread JL
Is it possible to run Ruby and Rails on Mac OS X off of a local folder (without local or system install using RVM, Homebrew, etc.) Similar to the way one can copy/paste Java installation directory and just run off of it with no dependencies, I'd like to do the same with Ruby/Rails. The goal i

[Rails] How to make Apache start Puma automaticaly on a Rails app

2013-07-28 Thread Exel Dev
Is there a way to get an Apache vhost to start Puma automatically on a Rails app? I'm installing Apache and Puma on a linux ubuntu 12.04 box, first I tried it with Passenger but it seemed quite slow compared to Puma. Is there a preferred recommended setup that's more ideal? Thanks, The Dude Ab

Re: [Rails] Partial js file with locals

2013-07-28 Thread Hans
Colin Thanks for your answere, but that was just a typo from me. The code has :locals and :id Den söndagen den 28:e juli 2013 kl. 11:50:55 UTC+2 skrev Colin Law: > > On 28 July 2013 10:40, Hans > wrote: > > ... > > > > That works but to be useful I would like to add locals as > > <%= render :

Re: [Rails] Partial js file with locals

2013-07-28 Thread Hans
Den söndagen den 28:e juli 2013 kl. 11:50:55 UTC+2 skrev Colin Law: > > On 28 July 2013 10:40, Hans > wrote: > > ... > > > > That works but to be useful I would like to add locals as > > <%= render :partial=>'new', :formats=>[:js],:handlers=>[:erb], > > locals=>{id=>"#group_participants_con

[Rails] Re: Partial js file with locals

2013-07-28 Thread Hans
Den söndagen den 28:e juli 2013 kl. 11:40:09 UTC+2 skrev Hans: > > I have a lot of js files like new.js, index.js, create.js etc that handles > my Ajax calls and other jquery code > As the have many common code snippets I have tried to use partial js files > For example I have a new.js file that

[Rails] Re: Partial js file with locals

2013-07-28 Thread Hans
Den söndagen den 28:e juli 2013 kl. 11:40:09 UTC+2 skrev Hans: > > I have a lot of js files like new.js, index.js, create.js etc that handles > my Ajax calls and other jquery code > As the have many common code snippets I have tried to use partial js files > For example I have a new.js file that

Re: [Rails] Partial js file with locals

2013-07-28 Thread Colin Law
On 28 July 2013 10:40, Hans wrote: > ... > > That works but to be useful I would like to add locals as > <%= render :partial=>'new', :formats=>[:js],:handlers=>[:erb], > locals=>{id=>"#group_participants_content"}%> I don't know whether there are any other problems but it should be :locals and :

[Rails] Partial js file with locals

2013-07-28 Thread Hans
I have a lot of js files like new.js, index.js, create.js etc that handles my Ajax calls and other jquery code As the have many common code snippets I have tried to use partial js files For example I have a new.js file that calls a partial _new.js new.js <%= render :partial=>'new', :formats=>[:j