[Rails] Re: is_a? returns false, though I think it should return true

2014-08-31 Thread Richard Wilson
As colin mentioned, this is an active record relation that looks like a card. I believe it's actually an association proxy (I dont have the rails code open here) Also, in rails, best practice is to operate on duck types, not strict types. You should never have to is_a? anything. This hints at d

[Rails] Re: Creating my first blog with ruby on rails

2014-08-31 Thread Richard Wilson
The routes don't matter here. Firstly, it should be @comment = @post.comments.create instead of build, no point in building something and saving it afterwards. Secondly, the comment won't be created because the parameters for the comment are not being sanitized. If rails allowed you to do what

[Rails] Re: New logo for Ruby On Rails ?

2014-08-31 Thread Brandon
I think it reminds me of stained glassed windows in churches! :) https://www.google.com.my/search?q=church+stained+glass&espv=2&source=lnms&tbm=isch&sa=X&ei=EfIDVISxMsHc8AWPy4HgAg&ved=0CAYQ_AUoAQ&biw=1440&bih=779 On Sunday, August 31, 2014 9:01:38 AM UTC+8, Designby Lefty wrote: > > What do you t

[Rails] Re: Re: Wix Style Web Page Builder Gem

2014-08-31 Thread David Williams
Hassan Schroeder wrote in post #1156455: > On Sun, Aug 31, 2014 at 10:17 AM, David Williams > wrote: > >> feature that gives users the ability to create web pages (predefined >> drag and drop items included), and then I would like to present those >> web pages on my domain with the link of that pe

[Rails] Re: New logo for Ruby On Rails ?

2014-08-31 Thread Manthan Mallikarjun
Personally, I think this is the coolest looking one. http://designmodo.com/wp-content/uploads/2014/06/rails.jpg If they edited it to have the text, it would be perfect! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

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 lik

Re: [Rails] Re: Wix Style Web Page Builder Gem

2014-08-31 Thread Hassan Schroeder
On Sun, Aug 31, 2014 at 10:17 AM, David Williams wrote: > feature that gives users the ability to create web pages (predefined > drag and drop items included), and then I would like to present those > web pages on my domain with the link of that person's name. > www.example.com/jennycraig. I can'

Re: [Rails] Regenerate Model / View for new columns

2014-08-31 Thread Hassan Schroeder
On Sun, Aug 31, 2014 at 12:16 PM, Walter Lee Davis wrote: >> But you will need to add these fields to your form and your show and index >> page manually if you want to use them. Also, in Rails 4.x: http://edgeguides.rubyonrails.org/action_controller_overview.html#strong-parameters -- Hassan S

Re: [Rails] Regenerate Model / View for new columns

2014-08-31 Thread Walter Lee Davis
On Aug 31, 2014, at 1:18 PM, Balamurali Krishna wrote: > I am trying to learn Ruby on Rails, so this may be a pretty basic > question. > > I have added new columns to an existing table using > 'rails generate migration add_column_to_table' command. > > I don't see any change in model & view du

[Rails] How to configure default options of "ckeditor_rails" gem

2014-08-31 Thread Rasool SB
I am new to Rails., can you please guide me to how to edit the default options of "ckeditor_rails" like normal ckeditor do. Please help me.! Thanks in Advance. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from th

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,

[Rails] Regenerate Model / View for new columns

2014-08-31 Thread Balamurali Krishna
I am trying to learn Ruby on Rails, so this may be a pretty basic question. I have added new columns to an existing table using 'rails generate migration add_column_to_table' command. I don't see any change in model & view due to this. So, I changed the all the views (like _form.html.erb & inde

[Rails] Re: Wix Style Web Page Builder Gem

2014-08-31 Thread David Williams
Hassan Schroeder wrote in post #1156440: > On Sat, Aug 30, 2014 at 4:00 PM, David Williams > wrote: >> I'm having trouble completing a large project, because I'm missing a >> feature that is necessary to finish building it. Does anyone know of a >> website builder gem that has drag-drop, view proj

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

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, b

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

Re: [Rails] Wix Style Web Page Builder Gem

2014-08-31 Thread Hassan Schroeder
On Sat, Aug 30, 2014 at 4:00 PM, David Williams wrote: > I'm having trouble completing a large project, because I'm missing a > feature that is necessary to finish building it. Does anyone know of a > website builder gem that has drag-drop, view projectors like Wix I for one have no idea what "vi

[Rails] Re: New logo for Ruby On Rails ?

2014-08-31 Thread David Adamczyk
The old logo is pretty cool, but missing logo buttons and other things. Dne neděle, 31. srpna 2014 3:01:38 UTC+2 Designby Lefty napsal(a): > > What do you think guys ? i think the Shiny Door is (sorry for the > modesty) a great finding because s true. > > >

[Rails] Re: Announcing nondestructive_migrations

2014-08-31 Thread mohamed aboelnour
:thumpsup: nice one indeed, try to add some tests. On Sunday, August 31, 2014 5:57:44 AM UTC+3, Jason FB wrote: > > > Announcing nondestructive_migrations : A Gem separating schema-only > migrations from nondestrucitve (data) migrations in your Rails app > > > For more information: > https://g

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

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

2014-08-31 Thread 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

[Rails] New logo for Ruby On Rails ?

2014-08-31 Thread Designby Lefty
What do you think guys ? i think the Shiny Door is (sorry for the modesty) a great finding because s true. -- You received this message because you are subscribed to th