Re: [Rails] Restarting Terminal when creating new attribute in atom question

2014-08-31 Thread Colin Law
On 31 August 2014 18:16, Thomas O'Boyle  wrote:
> Thanks for replying Colin.  I added the "has_many: cars" line in

There is the problem then, it should be has_many :cars, not has_many:
cars.  If you think that is what you have got then copy/paste user.rb
here.

Colin

> app/models/user.rb just like the instructor.  With the attr_accessible part,
> everything is exactly as it is in the tutorial.  I have gone through the
> project serval times to insure that I am doing everything right and get the
> same issues every time.
>
> Thanks again for replying!
>
> On Sunday, August 31, 2014 10:00:16 AM UTC-7, Colin Law wrote:
>>
>> On 31 August 2014 17:29, Thomas O'Boyle  wrote:
>> > Hi Nobert,
>> >
>> > Thanks for responding to my question.  I have completely followed his
>> > steps
>> > until the restart part.  I did notice that when the instructor adds
>> > attributes such as :condition and :year that they automatically appear
>> > in
>> > sublime, but when I check my work in atom the attr_accessible does not
>> > appear.  Could this be the issue?
>>
>> You did not answer the question as to whether you have added the line
>> has_many :cars in app/models/user.rb?
>> As to the issue with attr_accessible, you have to make sure that your
>> code is the same as the one in the tutorial.
>>
>> Colin
>>
>>
>> >
>> > Thanks again for responding!
>> >
>> > On Sunday, August 31, 2014 1:26:24 AM UTC-7, Norbert Melzer wrote:
>> >>
>> >> Have you followed his steps and changed your model? In other words,
>> >> have
>> >> you added the line has_many :cars in app/models/user.rb?
>> >>
>> >> Am 31.08.2014 09:42 schrieb "Thomas O'Boyle" :
>> >>>
>> >>> Hi All,
>> >>>
>> >>> I just started the UT on Rails class through reddit and am completely
>> >>> new
>> >>> to programing.  I apologize for not being able to articulate my
>> >>> problem
>> >>> clearly.  I am watching this video
>> >>> https://www.youtube.com/watch?v=EU98yHB-_7A and at 16:18 when the
>> >>> instructor
>> >>> restarts something (terminal) I get completely lost.  He consules back
>> >>> into
>> >>> rails after this restart but when I do this I get this:
>> >>>
>> >>> "User.last.cars
>> >>>
>> >>>   User Load (0.4ms)  SELECT  "users".* FROM "users"   ORDER BY
>> >>> "users"."id" DESC LIMIT 1
>> >>>
>> >>> NoMethodError: undefined method `cars' for #> >>>
>> >>>
>> >>> I apologize again for the poorly asked question but I am really new
>> >>> with
>> >>> all of this.
>> >>>
>> >>> Thanks so much!
>> >>>
>> >>>
>> >>> Happy labor day!
>> >>>
>> >>> --
>> >>> 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-ta...@googlegroups.com.
>> >>> To post to this group, send email to rubyonra...@googlegroups.com.
>> >>>
>> >>> To view this discussion on the web visit
>> >>>
>> >>> https://groups.google.com/d/msgid/rubyonrails-talk/4e8763a7-5235-400e-af07-209a44a5c30b%40googlegroups.com.
>> >>> For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > 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-ta...@googlegroups.com.
>> > To post to this group, send email to rubyonra...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/rubyonrails-talk/94d15c75-9b8d-4b75-90d7-5d7671f52217%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/824b8158-af90-491b-b49e-ea416924f516%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
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%3D0gLsYBf508sVSVkeotha1f2yhSq5F5z5L-QTX3PEoHLVeJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Restarting Terminal when creating new attribute in atom question

2014-08-31 Thread Norbert Melzer
2014-08-31 19:16 GMT+02:00 Thomas O'Boyle :

>  I added the "has_many: cars" line in app/models/user.rb just like the
> instructor.
>

Typo or copied? It has to be `has_many :cars` instead of `has_many: cars`!

If it is just a typo, please show us your complete `db/schema.rb` and
`app/models/{user,car}.rb`

-- 
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/CA%2BbCVss__SivyCT8DjcZynUXsS90wCyCWgjEKjJQ6neFHcjERA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Restarting Terminal when creating new attribute in atom question

2014-08-31 Thread Thomas O'Boyle
Thanks for replying Colin.  I added the "has_many: cars" line in 
app/models/user.rb just like the instructor.  With the attr_accessible 
part, everything is exactly as it is in the tutorial.  I have gone through 
the project serval times to insure that I am doing everything right and get 
the same issues every time.

Thanks again for replying! 

On Sunday, August 31, 2014 10:00:16 AM UTC-7, Colin Law wrote:
>
> On 31 August 2014 17:29, Thomas O'Boyle > 
> wrote: 
> > Hi Nobert, 
> > 
> > Thanks for responding to my question.  I have completely followed his 
> steps 
> > until the restart part.  I did notice that when the instructor adds 
> > attributes such as :condition and :year that they automatically appear 
> in 
> > sublime, but when I check my work in atom the attr_accessible does not 
> > appear.  Could this be the issue? 
>
> You did not answer the question as to whether you have added the line 
> has_many :cars in app/models/user.rb? 
> As to the issue with attr_accessible, you have to make sure that your 
> code is the same as the one in the tutorial. 
>
> Colin 
>
>
> > 
> > Thanks again for responding! 
> > 
> > On Sunday, August 31, 2014 1:26:24 AM UTC-7, Norbert Melzer wrote: 
> >> 
> >> Have you followed his steps and changed your model? In other words, 
> have 
> >> you added the line has_many :cars in app/models/user.rb? 
> >> 
> >> Am 31.08.2014 09:42 schrieb "Thomas O'Boyle" : 
> >>> 
> >>> Hi All, 
> >>> 
> >>> I just started the UT on Rails class through reddit and am completely 
> new 
> >>> to programing.  I apologize for not being able to articulate my 
> problem 
> >>> clearly.  I am watching this video 
> >>> https://www.youtube.com/watch?v=EU98yHB-_7A and at 16:18 when the 
> instructor 
> >>> restarts something (terminal) I get completely lost.  He consules back 
> into 
> >>> rails after this restart but when I do this I get this: 
> >>> 
> >>> "User.last.cars 
> >>> 
> >>>   User Load (0.4ms)  SELECT  "users".* FROM "users"   ORDER BY 
> >>> "users"."id" DESC LIMIT 1 
> >>> 
> >>> NoMethodError: undefined method `cars' for # >>> 
> >>> 
> >>> I apologize again for the poorly asked question but I am really new 
> with 
> >>> all of this. 
> >>> 
> >>> Thanks so much! 
> >>> 
> >>> 
> >>> Happy labor day! 
> >>> 
> >>> -- 
> >>> 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-ta...@googlegroups.com. 
> >>> To post to this group, send email to rubyonra...@googlegroups.com. 
> >>> 
> >>> To view this discussion on the web visit 
> >>> 
> https://groups.google.com/d/msgid/rubyonrails-talk/4e8763a7-5235-400e-af07-209a44a5c30b%40googlegroups.com.
>  
>
> >>> For more options, visit https://groups.google.com/d/optout. 
> > 
> > -- 
> > 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-ta...@googlegroups.com . 
> > To post to this group, send email to rubyonra...@googlegroups.com 
> . 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/rubyonrails-talk/94d15c75-9b8d-4b75-90d7-5d7671f52217%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/824b8158-af90-491b-b49e-ea416924f516%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Restarting Terminal when creating new attribute in atom question

2014-08-31 Thread Colin Law
On 31 August 2014 17:29, Thomas O'Boyle  wrote:
> Hi Nobert,
>
> Thanks for responding to my question.  I have completely followed his steps
> until the restart part.  I did notice that when the instructor adds
> attributes such as :condition and :year that they automatically appear in
> sublime, but when I check my work in atom the attr_accessible does not
> appear.  Could this be the issue?

You did not answer the question as to whether you have added the line
has_many :cars in app/models/user.rb?
As to the issue with attr_accessible, you have to make sure that your
code is the same as the one in the tutorial.

Colin


>
> Thanks again for responding!
>
> On Sunday, August 31, 2014 1:26:24 AM UTC-7, Norbert Melzer wrote:
>>
>> Have you followed his steps and changed your model? In other words, have
>> you added the line has_many :cars in app/models/user.rb?
>>
>> Am 31.08.2014 09:42 schrieb "Thomas O'Boyle" :
>>>
>>> Hi All,
>>>
>>> I just started the UT on Rails class through reddit and am completely new
>>> to programing.  I apologize for not being able to articulate my problem
>>> clearly.  I am watching this video
>>> https://www.youtube.com/watch?v=EU98yHB-_7A and at 16:18 when the instructor
>>> restarts something (terminal) I get completely lost.  He consules back into
>>> rails after this restart but when I do this I get this:
>>>
>>> "User.last.cars
>>>
>>>   User Load (0.4ms)  SELECT  "users".* FROM "users"   ORDER BY
>>> "users"."id" DESC LIMIT 1
>>>
>>> NoMethodError: undefined method `cars' for #>>
>>>
>>> I apologize again for the poorly asked question but I am really new with
>>> all of this.
>>>
>>> Thanks so much!
>>>
>>>
>>> Happy labor day!
>>>
>>> --
>>> 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-ta...@googlegroups.com.
>>> To post to this group, send email to rubyonra...@googlegroups.com.
>>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/4e8763a7-5235-400e-af07-209a44a5c30b%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/94d15c75-9b8d-4b75-90d7-5d7671f52217%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
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%3D0gLtRBLzsz-bXvgSH-GNnE00Z5KBHf7WTizWObJtP9vE23Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Restarting Terminal when creating new attribute in atom question

2014-08-31 Thread Thomas O'Boyle
Hi Nobert,

Thanks for responding to my question.  I have completely followed his steps 
until the restart part.  I did notice that when the instructor adds 
attributes such as :condition and :year that they automatically appear in 
sublime, but when I check my work in atom the attr_accessible does not 
appear.  Could this be the issue?

Thanks again for responding!

On Sunday, August 31, 2014 1:26:24 AM UTC-7, Norbert Melzer wrote:
>
> Have you followed his steps and changed your model? In other words, have 
> you added the line has_many :cars in app/models/user.rb?
> Am 31.08.2014 09:42 schrieb "Thomas O'Boyle"  >:
>
>> Hi All,
>>
>> I just started the UT on Rails class through reddit and am completely new 
>> to programing.  I apologize for not being able to articulate my problem 
>> clearly.  I am watching this video 
>> https://www.youtube.com/watch?v=EU98yHB-_7A and at 16:18 when the 
>> instructor restarts something (terminal) I get completely lost.  He 
>> consules back into rails after this restart but when I do this I get this:
>>
>> "User.last.cars
>>
>>   *User Load (0.4ms)*  *SELECT  "users".* FROM "users"   ORDER BY 
>> "users"."id" DESC LIMIT 1*
>>
>> NoMethodError: undefined method `cars' for #>
>>
>> I apologize again for the poorly asked question but I am really new with 
>> all of this.
>>
>> Thanks so much!
>>
>>
>> Happy labor day!
>>
>> -- 
>> 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-ta...@googlegroups.com .
>> To post to this group, send email to rubyonra...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/rubyonrails-talk/4e8763a7-5235-400e-af07-209a44a5c30b%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/94d15c75-9b8d-4b75-90d7-5d7671f52217%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Restarting Terminal when creating new attribute in atom question

2014-08-31 Thread Norbert Melzer
Have you followed his steps and changed your model? In other words, have
you added the line has_many :cars in app/models/user.rb?
Am 31.08.2014 09:42 schrieb "Thomas O'Boyle" :

> Hi All,
>
> I just started the UT on Rails class through reddit and am completely new
> to programing.  I apologize for not being able to articulate my problem
> clearly.  I am watching this video
> https://www.youtube.com/watch?v=EU98yHB-_7A and at 16:18 when the
> instructor restarts something (terminal) I get completely lost.  He
> consules back into rails after this restart but when I do this I get this:
>
> "User.last.cars
>
>   *User Load (0.4ms)*  *SELECT  "users".* FROM "users"   ORDER BY
> "users"."id" DESC LIMIT 1*
>
> NoMethodError: undefined method `cars' for #
>
> I apologize again for the poorly asked question but I am really new with
> all of this.
>
> Thanks so much!
>
>
> Happy labor day!
>
> --
> 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/4e8763a7-5235-400e-af07-209a44a5c30b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BbCVsu%2B8zxYuG5X74ighSYiZpCq%3DOX7Et5PYRBY9P_bEQ1ZOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.