[Rails] Getting Started with Ruby - Guide
Hi, I am making the Ruby on Rails Getting Started Guide at: http://guides.rubyonrails.org/getting_started.html but I have one problem. Almost everything is well explained but at 5.7 and 5.8 there are two commands: post GET/posts/:id(.:format) posts#show posts GET/posts(.:format) posts#index and it is not explained where I should put them. So I tried a few things, but especially the second one is I guess essential without I get an error message, for the first one I could manage it somehow. Could anyone make a quick look and tell me where I have to put them, please.? I am looking forward to hear from you and thank you for your time. :-) Yours faithfully Greeneco -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/727e266acec79cb504e23d4e2a5a7294%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Getting Started with Ruby - Guide
On Sep 15, 2013, at 6:12 AM, Green Eco li...@ruby-forum.com wrote: Hi, I am making the Ruby on Rails Getting Started Guide at: http://guides.rubyonrails.org/getting_started.html but I have one problem. Almost everything is well explained but at 5.7 and 5.8 there are two commands: post GET/posts/:id(.:format) posts#show posts GET/posts(.:format) posts#index and it is not explained where I should put them. So I tried a few things, but especially the second one is I guess essential without I get an error message, for the first one I could manage it somehow. Could anyone make a quick look and tell me where I have to put them, please.? Hi, welcome and stuffs :) These are not actually commands, but are the output from the `rake routes` command — the guides here are less than clear about that. If you read the version at http://edgeguides.rubyonrails.org/getting_started.html instead, is that clearer what's being shown? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9C418C15-DE4C-41D5-B926-4F6656B1F21B%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Getting Started with Ruby - Guide
tamouse m. wrote in post #1121496: On Sep 15, 2013, at 6:12 AM, Green Eco li...@ruby-forum.com wrote: and it is not explained where I should put them. So I tried a few things, but especially the second one is I guess essential without I get an error message, for the first one I could manage it somehow. Could anyone make a quick look and tell me where I have to put them, please.? Hi, welcome and stuffs :) These are not actually commands, but are the output from the `rake routes` command the guides here are less than clear about that. If you read the version at http://edgeguides.rubyonrails.org/getting_started.html instead, is that clearer what's being shown? Thank you for your quick answer, you really saved my day. :) Thanks. :-) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6481e7ae1260777c750ca0b2622a60e7%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] DateTime now
When using DateTime.now, does the now method return the time based on the remote OS system time or the local time where the user actually invoked the now method, if they are using ssh and running the commands in a rails console, for example? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/46b3432f-5ab4-42f8-9ac2-1ea8bb30cbb0%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] DateTime now
On 15 September 2013 15:51, John Merlino stoici...@aol.com wrote: When using DateTime.now, does the now method return the time based on the remote OS system time or the local time where the user actually invoked the now method, if they are using ssh and running the commands in a rails console, for example? It returns the time on the machine that is running the code, so if they ssh into a machine to run it then it is the time on the machine ssh'ed into. How could it be otherwise? The machine ssh'ed into does not know anything about the client machine's time settings. 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 receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/46b3432f-5ab4-42f8-9ac2-1ea8bb30cbb0%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLstndQE8G6Ru_OKn7_xCfvv-%2B8L4mdVpyY3bZVdPK9HHA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Looking for Ruby on Rails developer for eCommerce project
Hey Mills, I would like to work with you for the eCommerce project. I have used Spree before. On Tuesday, September 10, 2013 6:49:16 PM UTC-4, Mills Hawkins wrote: Looking for Ruby on Rails developer for eCommerce project. Preferably in Columbus, OH -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2be8662f-a2f4-45e7-8ba5-60418d25b775%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Why does Rails convert scopes to downcase
I found a strange behavior in Rails 4 with scopes when I use postgres. I have a Object with saleStartDate and saleEndDate attributes. scope :active, - { where(isActivate: true) } scope :activeDate, - { active.where(? BETWEEN saleStartDate AND saleEndDate, Date.today)} When I use sqlite, all works when I want to get the object with the activeDate scope. When I use postgres, I get an error pg:error salestartdate column not found! Postgres is case sensitive! So why does Rails convert saleStartDate to salestartdate in a scope? I changed saleStartDate to sale_start_date. Now it works. Is it best practice to use _ and not CamelCase in scopes? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/162db918-b0f9-4765-bd4a-96eb4bcf5ec9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Looking for Ruby on Rails developer for eCommerce project
I am not from USA, but I have a lot of ecommerce skills, please contact me if you have any interest. 2013/9/15 John Moon johnmoo...@gmail.com Hey Mills, I would like to work with you for the eCommerce project. I have used Spree before. On Tuesday, September 10, 2013 6:49:16 PM UTC-4, Mills Hawkins wrote: Looking for Ruby on Rails developer for eCommerce project. Preferably in Columbus, OH -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2be8662f-a2f4-45e7-8ba5-60418d25b775%40googlegroups.com . For more options, visit https://groups.google.com/groups/opt_out. -- thiagocifani http://about.me/thiagocifani http://del.icio.us/thiagocifani http://del.icio.us/thiagocifani -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAGNtUE_yPy1tt%3DGCMfVG_qiN4EpmEUbp1gcf4%3D2Oz%2B0UCUA5Ug%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Why does Rails convert scopes to downcase
On Sep 15, 2013, at 5:48 AM, Nicolas Mauchle nmauc...@gmail.com wrote: Postgres is case sensitive! So why does Rails convert saleStartDate to salestartdate in a scope? You misunderstand postgres. It implements the case insensitivity required by SQL standards via a bit of a kludge--downcasing all identifiers that are not quoted. I'd bet this would have worked: scope :activeDate, - { active.where('? BETWEEN saleStartDate AND saleEndDate', Date.today)} Is it best practice to use _ and not CamelCase in scopes? Well, I don't know that I want to say best practice because I *like* using mixed case in my schemas, and I have a lot of legacy tables that way, but with postgres in particular is sure as heck would be *easier* to use all lower case ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6DC5320D-44B8-4974-BE45-06D852B12EA8%40elevated-dev.com. For more options, visit https://groups.google.com/groups/opt_out.