Re: [Rails] help me debug this model

2018-03-27 Thread Mugurel Chirica
What have you tried so far in debugging this? Have you used any debugger like pry to see what happens when you rune the code? -- 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

[Rails] Re: help me debug this model

2018-03-27 Thread fugee ohu
On Monday, March 26, 2018 at 8:17:56 PM UTC-4, fugee ohu wrote: > > This model has some errors that I wasn't able to get sorted out the two > lines that begin with validate should be validates but after that I don't > understand what the author's trying to do If I change them to validates I >

[Rails] Re: help me debug this model

2018-03-27 Thread Allen Maxwell
It might help to have the models for auction and user... also, I like to add the annotate gem which gives some header comments in all my models to show what fields etc are there. Very helpful info and references. you already know that the validate needs to be validates... is this an active

[Rails] Re: help me debug this model

2018-03-27 Thread fugee ohu
Ok, and I don't understand what this means: validates :auction_active?, message: :auction_active class Auction < ActiveRecord::Base include ApplicationHelper belongs_to :product belongs_to :image has_many :bids validates :product, :image, :min_price, :start_price, :start_time,

[Rails] Re: help me debug this model

2018-03-27 Thread fugee ohu
Actually the first thing is see when I visit that link is the use of validate without the s On Tuesday, March 27, 2018 at 6:54:34 AM UTC-4, Allen Maxwell wrote: > > It might help to have the models for auction and user... also, I like to > add the annotate gem which gives some header comments

[Rails] automated end of auction strategy

2018-03-27 Thread fugee ohu
If I have auctions with end datetimes and bids for the auctions how do i have rails manage the end of the auctions -- 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

[Rails] Re: SEEKING RoR developers

2018-03-27 Thread Ansari
Hello, I an interested, CV: http://shahid-ansari.herokuapp.com/ On Monday, March 5, 2018 at 8:51:32 PM UTC+5:30, Sergio Lapenna wrote: > > Hi guys, > > we are looking for remote RoR developers to help us in the development of > the server side of our IoT technology. > > Best regards, >

Re: [Rails] help me debug this model

2018-03-27 Thread fugee ohu
On Tuesday, March 27, 2018 at 2:12:27 PM UTC-4, Walter Lee Davis wrote: > > Read the docs I linked you to, and if that doesn't explain it, then ask > the author of the code you're extending. It's possible that it is passing a > reference to a proc or lambda, but I have not seen that exact code

[Rails] Anonymous survey - your help is greatly appreciated

2018-03-27 Thread Mugurel Chirica
Hello everyone, I'd like to have a better idea (that's up to date and real, not possibly fake data) of how much Web Developers / Programmers in different parts of the world are paid. If anyone has 20 - 60 seconds to spare and fill the anonymous survey, it will be very helpful. You will find the

Re: [Rails] help me debug this model

2018-03-27 Thread Walter Lee Davis
> On Mar 27, 2018, at 9:20 AM, fugee ohu wrote: > > Actually the first thing is see when I visit that link is the use of validate > without the s The validate method is used along with a custom validator method. The validates method is "built in" and uses a DSL to specify

Re: [Rails] Rails conventions

2018-03-27 Thread Hassan Schroeder
On Tue, Mar 27, 2018 at 6:52 AM, Brian Postow wrote: > I'm an experienced programmer, who's starting to use Ruby on Rails for the > first time. I need some documentation that JUST explains how variable names > are manipulated. Things I need to understand: The questions you're

[Rails] Rails conventions

2018-03-27 Thread Brian Postow
Hello! I'm an experienced programmer, who's starting to use Ruby on Rails for the first time. I need some documentation that JUST explains how variable names are manipulated. Things I need to understand: - When Rails will automatically convert between CamelCase and snake_case (like

Re: [Rails] help me debug this model

2018-03-27 Thread Walter Lee Davis
Read the docs I linked you to, and if that doesn't explain it, then ask the author of the code you're extending. It's possible that it is passing a reference to a proc or lambda, but I have not seen that exact code before, so I can only guess. Walter > On Mar 27, 2018, at 2:04 PM, fugee ohu

Re: [Rails] help me debug this model

2018-03-27 Thread fugee ohu
On Tuesday, March 27, 2018 at 11:44:54 AM UTC-4, Walter Lee Davis wrote: > > > > On Mar 27, 2018, at 9:20 AM, fugee ohu > wrote: > > > > Actually the first thing is see when I visit that link is the use of > validate without the s > > The validate method is used along

Re: [Rails] Rails conventions

2018-03-27 Thread Walter Lee Davis
> On Mar 27, 2018, at 3:39 PM, Brian Postow wrote: > > No, I'm pretty sure that everything I'm looking at is strictly rails. A > friend pointed me at: > https://gist.github.com/iangreenleaf/b206d09c587e8fc6399e which is a really > good start. > > All of the conversions of

Re: [Rails] Rails conventions

2018-03-27 Thread Brian Postow
No, I'm pretty sure that everything I'm looking at is strictly rails. A friend pointed me at: https://gist.github.com/iangreenleaf/b206d09c587e8fc6399e which is a really good start. All of the conversions of CamelCase to snake_case, or plural to singular are all strictly rails. AFAIK, the

Re: [Rails] Rails conventions

2018-03-27 Thread nanaya
On Wed, Mar 28, 2018, at 04:39, Brian Postow wrote: > The rails guides are not references. They're tutorials. > > An example of the thing I'm having trouble with: > > I'm having things like "it says it's missing foo_bar_bazes" but > "foo_bar_bazes" never occurs in my code, why does it think

Re: [Rails] Rails conventions

2018-03-27 Thread Brian Postow
by "not references" I meant it's way too verbose for what I need. The rails guides are meant (or appear to be meant) to be read cover to cover. I need something where I can looks a specific thing up. It's the difference between http://ruby-doc.com/docs/ProgrammingRuby/ and