[Rails] button to launch erb scripts and display outputs.

2016-03-11 Thread Bigmac Turdsplash
i have a fresh rails application called basic... i have boot strap working and looking to create a button that if pressed will launch a ruby script and display its live output as it happens... button <%= 100.times do |i|%> <%= print i*i%> <%= sleep 1%> <%=end%> i hope some one can point me i

[Rails] DuckRails - Open source development tool built with Rails

2016-03-11 Thread Lazarus Lazaridis
Hello everybody, I created a Rails application - development tool for quick & dynamic mocking of API endpoints. https://github.com/iridakos/duckrails --

[Rails] Collation order in Rails with Postgresql

2016-03-11 Thread Donald Ziesig
Hi All! I am trying to get a rails postgres table ordered by the exact values of the ascii characters such that: Alpha Bravo Charlie ... Unfortunately, even when I try to escape the < characters and enter them directly in the Postgresql table, I get: Alpha Bravo * * * Lima Mike November

Re: [Rails] elasticsearch

2016-03-11 Thread Hassan Schroeder
On Fri, Mar 11, 2016 at 12:03 PM, fugee ohu wrote: >> Alternatively, you can submit issues on github as well. Perhaps it's >> time to explore github a little more :-) > It works on my desktop, but not my laptop Could it be because my laptop has > 2 network adapters, wireless and wired? Huh, wha

Re: [Rails] elasticsearch

2016-03-11 Thread fugee ohu
On Friday, March 11, 2016 at 2:35:45 PM UTC-5, Hassan Schroeder wrote: > > On Fri, Mar 11, 2016 at 10:45 AM, fugee ohu > wrote: > > > I have looked for the author's email i couldn't find it Where do i > submit a > > doc PR? I can guess the R means request I dunno what the P means > > PR stan

Re: [Rails] elasticsearch

2016-03-11 Thread Hassan Schroeder
On Fri, Mar 11, 2016 at 10:45 AM, fugee ohu wrote: > I have looked for the author's email i couldn't find it Where do i submit a > doc PR? I can guess the R means request I dunno what the P means PR stands for Pull Request - https://help.github.com/articles/using-pull-requests/ Alternatively, y

[Rails] elasticsearch configuration listinening on a particular ip address

2016-03-11 Thread fugee ohu
I have elasticsearch installed on 2 machines, both the same operating system, linux mint 17.2, elasticsearch raises errors (transport errorss not found) on my laptop but not my desktop The significant difference between the 2 is that my laptop has 2 network interfaces (wired and wireless) and

Re: [Rails] elasticsearch

2016-03-11 Thread fugee ohu
On Friday, March 11, 2016 at 9:19:07 AM UTC-5, Hassan Schroeder wrote: > > On Thu, Mar 10, 2016 at 3:11 PM, fugee ohu > wrote: > > Why doesn't the elasticsearch github page say anything about ... > > Shouldn't you ask that of the page author(s)? Or submit a doc PR? > > -- > Hassan Schroeder

[Rails] Re: Having trouble with named_scopes for my view

2016-03-11 Thread David Williams
Walter Davis wrote in post #1182112: > Part of one of the RailsConf sessions I went to, either last year or the > year before, could have been re-titled "default_scope considered > harmful". I don't think it's deprecated or anything, but it is > definitely something to use sparingly, and with

[Rails] [ANN] Rails 4.2.6 and 4.1.15 have been released!

2016-03-11 Thread Rafael Mendonça França
Hi everyone, I am happy to announce that Rails 4.2.6 and 4.1.15 have been released. ## CHANGES since 4.1.14 To view the changes for each gem, please read the changelogs on GitHub: * [Action Mailer CHANGELOG]( https://github.com/rails/rails/blob/v4.1.15/actionmailer/CHANGELOG.md) * [Action Pack

Re: [Rails] elasticsearch

2016-03-11 Thread Hassan Schroeder
On Thu, Mar 10, 2016 at 3:11 PM, fugee ohu wrote: > Why doesn't the elasticsearch github page say anything about ... Shouldn't you ask that of the page author(s)? Or submit a doc PR? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter:

[Rails] Re: How to make the Cart functionality to work in Rails

2016-03-11 Thread Atchyut Nagabhairava
Thanks for your kind words Walter, I have finally created the cart functionality using a controller. Thanks for the response :) On Thursday, March 10, 2016 at 9:24:59 PM UTC+5:30, Atchyut Nagabhairava wrote: > > >

Re: [Rails] How to make the Cart functionality to work in Rails

2016-03-11 Thread Walter Lee Davis
> On Mar 10, 2016, at 4:23 AM, Atchyut Nagabhairava > wrote: > > > > I was practicing rails by creating a food ordering website some what similar > to FoodPanda. > For now I have created pages to display restaurants, in restaurant profile to > display menu items. I stuck up with a doubt how

Re: [Rails] Having trouble with named_scopes for my view

2016-03-11 Thread Walter Lee Davis
> On Mar 10, 2016, at 3:11 AM, Colin Law wrote: > > On 9 March 2016 at 22:25, David Williams wrote: >> Colin Law wrote in post #1182073: >>> On 9 March 2016 at 21:51, David Williams wrote: "articles"."category_id" = ? ORDER BY "articles"."created_at" DESC [["category_id", 1]]