[Rails] Re: Rails routing question

2014-12-06 Thread Dave Castellano
Walter Davis wrote in post #1164174: >Thanks! I was trying to either make changes to a form and then review it with the show action, or use another button to go directly to the next record and edit it. I was thinking I had to go to update. fixed thanks to your replies. Dave Castellano --

Re: [Rails] Rails routing question

2014-12-06 Thread Walter Lee Davis
On Dec 6, 2014, at 4:45 PM, Dave Castellano wrote: > Hi, > > Can anyone help... I am trying to understand how 2 different routes > like show and update seem to be the same. Both are > /questions/:id(.:format). > > GET /questions(.:format) > questions#index > POST /quest

Re: [Rails] Rails routing question

2014-12-06 Thread Scott Ribe
On Dec 6, 2014, at 2:45 PM, Dave Castellano wrote: > > When I try to redirect an action to update, it actually goes to the show > method and I can not figure out how to redirect to the update action. Redirecting to a post simply makes no sense. I suspect maybe you're confusing the action that d

[Rails] Rails routing question

2014-12-06 Thread Dave Castellano
Hi, Can anyone help... I am trying to understand how 2 different routes like show and update seem to be the same. Both are /questions/:id(.:format). GET /questions(.:format) questions#index POST /questions(.:format) questions#create GET /questions/new(.:format)

Re: [Rails] History of Ruby on Rails

2014-12-06 Thread Colin Law
On 6 December 2014 at 19:48, Dave Aronson wrote: > On Sat, Dec 6, 2014 at 1:44 PM, wrote: > >> Is there a descent source that details the history and development of Ruby >> on Rails? > > You'll find all you ever needed to know here: > > http://www.lmgtfy.com?q=%22ruby+on+rails%22+history > > Y

Re: [Rails] History of Ruby on Rails

2014-12-06 Thread Dave Aronson
On Sat, Dec 6, 2014 at 1:44 PM, wrote: > Is there a descent source that details the history and development of Ruby > on Rails? You'll find all you ever needed to know here: http://www.lmgtfy.com?q=%22ruby+on+rails%22+history You might also find this useful, even if the author's tone is oft

[Rails] History of Ruby on Rails

2014-12-06 Thread awhitehttr
Is there a descent source that details the history and development of Ruby on Rails? I'm working on a paper for school, and am having a little trouble finding such a source. thanks, -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] Re: how to test the contents of the p tag

2014-12-06 Thread Roelof Wobben
Thanks, And how do I test this on a functional test for a controller. Roelof Op zaterdag 6 december 2014 14:52:06 UTC+1 schreef dasibre: > The problem with testing to that level is, sometimes the tag may not be > rendered yet. Also, such tests tend to be brittle. You dont want to depend >

[Rails] Re: Uninitialized constant error with a variables within a module

2014-12-06 Thread dasibre
What exactly are you trying to achieve??? On Monday, December 1, 2014 9:07:58 AM UTC-5, trekr67 wrote: > > Hi, > > New to ruby development so wondering if someone could help... > > I have this code in a file1.rb > > #file1.rb > > module GG > class GG > > ::NAME = 'gginfrausermanager' > > end >

Re: [Rails] Finding records either side of a reference

2014-12-06 Thread Dave Aronson
On Sat, Dec 6, 2014 at 9:46 AM, Colin Law wrote: > I want to find the last segment with a start_time <= > time and the first one with start_time > time, so > Segment.order(:start_time).where( "start_time <= ?", time).last > and > Segment.order(:start_time).where( "start_time > ?", time).first > I

Re: [Rails] Build report on Ruby on Rails

2014-12-06 Thread Walter Lee Davis
And if you have a budget for it, then I heartily recommend PrinceXML, which does an amazing job. Walter On Dec 6, 2014, at 3:56 AM, ANIL YADAV <1993anilya...@gmail.com> wrote: > > If you want to use Gem then use pdf-kit > https://github.com/pdfkit/pdfkit/ (See full Documentation) > >

[Rails] Finding records either side of a reference

2014-12-06 Thread Colin Law
I have a simple problem that I am sure has a simple answer, but my brain will not produce the answer. I have a table (segments) that has a start_time field. Given a specific time I want to find the last segment with a start_time <= time and the first one with start_time > time, so Segment.order(:s

[Rails] Re: how to test the contents of the p tag

2014-12-06 Thread dasibre
The problem with testing to that level is, sometimes the tag may not be rendered yet. Also, such tests tend to be brittle. You dont want to depend on things that change often, I would probably test that the product.title exists, regardless of what tag its wrapped in. On Friday, December 5, 2014

[Rails] Re: Build report on Ruby on Rails

2014-12-06 Thread ANIL YADAV
> If you want to use Gem then use *pdf-kit* https://github.com/*pdfkit* > /*pdfkit/* * (See full Documentation)* > > Anil Yadav > Thank you > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou

[Rails] Re: e-commerce

2014-12-06 Thread ANIL YADAV
You Use e commerce-spree API it's best for ROR application easy to implemented go to home page and see how to implement it in you'r application > For a toy library I want to make a sort of e-commerce app for the > financial part like payments by cash and bank, payable invoices and > invoi