All Comments

By David Mendiola for Post #15 Oct 11, 2012 12:24
Thanks a lot!!! :D
By prateek papriwal for Post #2 Jul 26, 2012 04:44
nice work done by you
By Rom Rains for Post #57 Apr 07, 2012 10:16
Hi... this is such a cool resource. do you ever plan to revive it? romy
By SouthWolf for Post #1 Nov 18, 2011 19:34
*1* gem 'jquery-rails' and gem 'rails3-generators' no longer needed. *2* Specify Compass version by gem 'compass', '~> 0.12.alpha.0' *3* DO NOT USE Compass INIT. Create your own css.scss in app/assets/stylesheets, with CSS frameworks you want @import '_blueprint'; @include blueprint; *4* Add your scss to the Assets Pipeline
By goutham vel for Post #18 Jul 18, 2011 06:13
I found a new solution for this. In my case I was trying this out on pic-tales.com .. and figured it out that my server timezone was set improper so that created that problem. Found this out by debugging use_nonce[ first line]. worked with charm after changing timezone!!
By aRailsDemo for Post #56 Jun 12, 2011 21:37
Good point there Jeff. Using File.join will avoid some potential bugs.
By Jeffrey Jones for Post #56 Jun 12, 2011 17:39
I don't like the code in the fixture method. Bad practice to hard-code path separators. def fixture(file) File.new( File.join(fixture_path, file) ) end would be better
By aRailsDemo for Post #7 Jun 07, 2011 14:36
Actually, back in Post #1 during the initial installation, I chose not to put the stylesheets in the app directory. With Rails 3.1, thought, the app directory should be that standard.
By Steve Bobrowski for Post #7 Jun 06, 2011 05:55
Your sass file should be app/stylesheets/application.sass. Perhaps I'm using a more recent version of compass, or just a different config, but that's the default on my configuration. Thanks, Steve
By aRailsDemo for Post #5 Jun 05, 2011 20:25
Thanks again Steve. Update added.
By aRailsDemo for Post #3 Jun 05, 2011 20:22
Great points there Steve. Thanks for the tips.
By Steve Bobrowski for Post #5 Jun 05, 2011 14:16
1. Same comments as before with your scaffolding (references, scaffold.css). You'll need to update your migration snippet if you go with references. 2. You forgot to update your posts controller like you did in a previous lesson: @post = Post.new(:sequence => Post.all.size + 1) should be @post = Post.new(:sequence => Post.count + 1)
By Steve Bobrowski for Post #3 Jun 05, 2011 13:24
1. Why not use post:references rather than post_id:integer? You'll get the belongs_to :post for free in the section model. 2. When running the scaffold, tell your readers to *not* overwrite scaffold.css or else they'll lose the changes from the previous post. Steve
By Steve Bobrowski for Post #1 Jun 05, 2011 12:59
Using rails 3.0.7. Problem with your javascript defaults, which reference non-existent rails.js. So I'm using: config.action_view.javascript_expansions[:defaults] = %w(jquery jquery-ui jquery_ujs) Thanks, Steve
By Walter Yu, P.E., LEED AP for Post #36 Apr 03, 2011 00:11
Excellent points -- speeding up the test suite begins to matter as the number of tests go up. Autotest is a good tool to leave running in the background so there will be less downtime while waiting for tests to re-run. --Walter
By Walter Yu, P.E., LEED AP for Post #41 Apr 03, 2011 00:03
Excellent write-up, one of the best I have seen so far -- it covers integration testing in depth and keeps up with the RSpec Book by Chelimsky, which I happened to review while working through your examples today. Keep up the good work! --Walter
By Victor Miclovich for Post #45 Mar 02, 2011 05:41
this is nice....
By Jason Thomas for Post #44 Feb 21, 2011 21:54
The part about CSRF Protection in Rails 3.0.4 is CRITICAL! I was trying to log in with Google and found myself logged out after the redirect. Finally figured out the cause was in Devise when handle_unverified_request is called the session is destroyed. Not sure what the permanent fix is but your method saved me.
By aRailsDemo for Post #44 Feb 20, 2011 20:29
Thanks. I'm glad you like it. About race conditions, I'm not too familiar with the issue, but maybe this will help http://guides.rubyonrails.org/active_record_querying.html#locking-records-for-update
By Zuigi M for Post #44 Feb 20, 2011 04:25
Hi congrats for your blog it's very useful. I'd like to know would manage race-conditions in rails, here is an example http://stackoverflow.com/questions/4939349/find-or-create-and-race-condition-in-rails-theory-and-production/4940469#4940469
By Arun Agrawal for Post #41 Jan 30, 2011 00:05
It's Looks nice tute to go with Capybara..!!
By aRailsDemo for Post #18 Jan 20, 2011 20:24
I'm still not sure what was causing that bug. I doubt it was OmniAuth and would guess that OmniAuth would work with either Ruby 1.8.7 or 1.9.2 without a problem if you weren't using memcached.
By aRailsDemo for Post #36 Jan 20, 2011 20:03
Thanks for the info Graham. I'll check it out.
By murdoch for Post #18 Jan 20, 2011 01:34
Does the bug in the last section mean that you can't use multiple versions of ruby with omniauth?
By Graham Ashton for Post #36 Jan 14, 2011 14:51
On the subject of avoiding having to type `bundle exec` all the time, I cooked up a short shell script that automatically prepends it to common Ruby commands (e.g. ruby, rake, rspec, shotgun) when you're in a bundled project. You can find it on GitHub: https://github.com/gma/bundler-exec
By aRailsDemo for Post #2 Jan 05, 2011 17:19
Thanks Clemens. Typo corrected.
By Clemens Park for Post #2 Jan 04, 2011 20:42
Typo: If you need to undo the scaffolding, use 'rails destroy scaffold announcement'. should be: If you need to undo the scaffolding, use 'rails destroy scaffold post'. Cheers!
By aRailsDemo for Post #32 Dec 26, 2010 16:02
David, I'm not quite sure what you're referring to, but Barista does automatically compile CoffeeScripts into JavaScripts in development mode. The default is that you have CoffeeScripts in app/coffeescripts and the javascripts will be in public/javascripts (although these can be changed through configuration).
By David Bock for Post #32 Dec 23, 2010 15:39
I was just reading through this gem the other day. I wish it worked more like the integration compass has when generating stylesheets from scss... actually writing the javascript file into public/javascripts. I'm using this and compass on a new app, and it bothers me that the same concept (generating [stylesheets|javascript] from a proto-language) is handled two different ways.
By Michael Bleigh for Post #28 Dec 01, 2010 08:42
I had no idea I was such a wise, elderly sage. Good intro to BDD, and I must say I was quite surprised to find myself such a central character in a random post I clicked to from RubyFlow. ;)
By aRailsDemo for Post #3 Nov 09, 2010 22:16
Thanks again Dave. In show.html.haml, when I edited that snippet, I put some comments in showing the edited parts. I was using Ruby syntax for comments. I have changed it to HAML comments "-#". Also, fixed the other typo. About the source code, I've been thinking about putting it on Github with a commit after each post. I've created an empty repository at https://github.com/aRailsDemo/arailsdemo. I'll try to get some of the code on there.
By aRailsDemo for Post #2 Nov 09, 2010 19:25
Thanks Dave for picking that up. It's been corrected.
By Dave Porter for Post #3 Nov 09, 2010 15:38
Getting this error at the end of Part #3 Can the source code be shown somewhere so I can compare ? Thanks, Dave >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Haml::SyntaxError in Posts#show Showing C:/Ruby192/RailsApps/arailsdemo/app/views/posts/show.html.haml where line #2 raised: Illegal element: classes and ids must have values. Extracted source (around line #2): 1: %h1= "\##{@post.sequence} #{@post.title}" 2: # %p= raw @post.description 3: %p= sanitize @post.description # edited 10/27/10 4: 5: - for section in @post.sections
By Dave Porter for Post #3 Nov 09, 2010 15:25
Typo: app/views/posts_form.html.haml should be app/views/posts/_form.html.haml
By Dave Porter for Post #2 Nov 08, 2010 17:38
Should the root :to => not be "posts#index" ? Cheers Dave
By arailsdemo for Post #20 Oct 30, 2010 19:39
This comment was made after logging in through the site's Twitter account...
By aRailsDemo for Post #16 Oct 16, 2010 20:17
User comments coming soon...