Love the new look Ryan! Very clean and gives me a tron feel to the logo a little bit. I'd recommend changing the "destroy" button's text to "delete" in comments as it just seems a bit more semantically acceptable in the interwebz.
Also super excited about Rails 3.1 now. I was hesitant about the inclusion of coffee script but I'm starting to see the light of CS after digging into it deeper. I prefer sass over scss so hopefully there is a switch for it. Also glad they added jQuery as the default.
Rails 3.1 is shaping up to be awesome. Thanks for the overview.
I did not 'Show Notes', 'Comments', 'Similar Episodes' tabs to do a full page reload. The page reload obviously stop and looses your place of the video that was playing.
Love the new design. Keep up the great work. Also, I see "Edit", "Hide", and "Destroy" links on Carlos' comment. Not sure if that was suppose to happen.
Used this technique to setup a simple playlist admin tool, but when I push it up to heroku the search isn't working consistently: some words are found and other sequence of letters aren't. Any pointers as to where to start?
Also, it works perfectly on the local server. But, isn't that always the case? :)
Also: writing your own controller action for generating the manifest file, makes it possible to generate a list of all the possible html-files the user may wish to see offline:
people/1
people/4
people/5
I'm happy with this solution. But I guess it won't be possible doing this if each user has a pretty big collection of records and files.
Thanks for the write up. I find that the rack-offline gem is good, but doesn't really fit my needs. I want the complete app to be available offline for a certain user (including all the users assets - thumbnails - saved with paperclip).
I've created a CacheManifest controller and model which loads a manifest with CacheManifestItems (another model) for each logged in user. If the user changes one of its files, the manifest get's updated the next time the user loads a page.
This works great: the entire app is available offline.
I put together a Rails 3 example app (with a detailed walk-through tutorial) that shows how to use Mongoid with OmniAuth (plus optional RSpec, Cucumber, and Haml): https://github.com/fortuity/rails3-mongoid-omniauth. It goes into more detail than the Railscast for those who need a full starter app.
Great post! I have a question though. I have downloaded the source code for this episode. I start with the "chatter-before" project and follow along with the screencast.
My question is why when I send my curl command nothing happens? I have not set the faye token or set any security. I followed along exactly and just want the 'alert' function to happen before moving on.
I followed your video, and got everything working. But now when i run my search through thinking_sphinx the pagination stops working... Any thoughts on that?
Hi, I've been experimenting with the source for this railscast and am trying to produce XML for the view of the books with the authors listed. I've got it working for Books and Authors using the following ....
respond_with(@book = Book.find(params[:id]))
in the controllers (only showing the books one above). But cannot figure out how to get the associated authors in the xml.
I've looked through the docs at http://guides.rubyonrails.org/ but can't find an example of how I'd actually get the associated authors included in the respond_with call.
I'm sure its probably trivial, but this is all new to me at the moment.
Wow, lots of spam above. Anyway, I just came across this and it was great because I was trying to figure out what all of that data was in the profiling trace and how to use it. I also thought I'd share that you can install:
sudo gem install newrelic_rpm
sudo gem install ruby-prof
- add a config/newrelic.yml file, which you can get by singing up for a free/lite newrelic account
- start up your app and click around
or
- go to http://127.0.0.1:3000/newrelic/ and click 'start profiling' then click around and go back to http://127.0.0.1:3000/newrelic/ to see the profiling traces
Here's a link for the newrelic developer mode stuff http://support.newrelic.com/kb/docs/developer-mode
Putting a RUBY_PLATFORM condition in the Gemfile is not a good idea. When installing an application bundle on the production server (different platform) with the --deployment or --frozen option, bundler will complain that the Gemfile does not match the Gemfile.lock.
I've tried to use this technique to also add new items, if they don't exist yet. Ryan Bates came up with a great idea and I used it like this: https://gist.github.com/952240
@Rick: That's why I never like the "Gang of Four" moniker. To me, the book is "Gamma, Helms, Johnson and Vlissides". I was fortunate to have a useful email exchange with John before his death.
Nice layout!! Great episode as usual.
Amazing episode, maybe someone like me had a:
Could not find a JavaScript runtime. (error)
Doing some google, i found the solution at:
http://tinyurl.com/443eqjk
What it work for me in Ubuntu 11.04 was installing nodejs:
sudo apt-get install nodejs
Thank you Ryan for this amazing episode and the new site rocks!
Great new Design. Only, if I'm honest, I liked the first intro, that def railscast typing, best :)
Great job! Thanks for this episode!
Nice layout! Rails 3.1 rocks!
Nicely done! I really like the new sublime player and the new view styles.... also nice to have the search on all pages now :)
And as usual, a great screen cast too!
Love the new look Ryan! Very clean and gives me a tron feel to the logo a little bit. I'd recommend changing the "destroy" button's text to "delete" in comments as it just seems a bit more semantically acceptable in the interwebz.
Also super excited about Rails 3.1 now. I was hesitant about the inclusion of coffee script but I'm starting to see the light of CS after digging into it deeper. I prefer sass over scss so hopefully there is a switch for it. Also glad they added jQuery as the default.
Rails 3.1 is shaping up to be awesome. Thanks for the overview.
Another excellent cast. Can't wait for the final 3.1 release!
Why don't you use the ProjectPlus plugin? I read Missing Drawer is currently discontinued.
Interface looks very cool!!!.
I started my journey with Rails 3.1.
Loving the new site Ryan, great job. And 3.1 looks awesome, I'm so glad Sass has been added but now I need to go learn CoffeeScript.
Just a note, you may want to move your KeyCastr more to the right. As of now, it's just over from being centered.
Thanks. They have disappeared for me as well.
Nice redesign, Ryan! Thanks for taking a dive into the latest build. I guess now is a good time to start playing around with Coffeescript and SASS.
When I saw your tweet this morning I knew there was a redesign coming! Awesome job!
Fantastic work Ryan! Been loving your Railscasts since 2008
I did not 'Show Notes', 'Comments', 'Similar Episodes' tabs to do a full page reload. The page reload obviously stop and looses your place of the video that was playing.
Greate new interface!
I think the video area can be smaller and get larger after I click to play! :)
And want to know how you encode the video?
That should be fixed now. Ryan pushed the fix for it, and seeing as those buttons for me are gone now, he must have deployed the fix too.
Love the new design. Keep up the great work. Also, I see "Edit", "Hide", and "Destroy" links on Carlos' comment. Not sure if that was suppose to happen.
The new video format is great on my iPad!
Great one!! For one second thought that I was at the wrong place! I Like the new design but will miss the old.
Beautiful looking site, Ryan. Nice job :) Content awesome as usual.
whoa, the new design, and the new version of Rails. cool!
Hi ryan the arrange method is not working for ruby 1.8.7.
hi ryan i use rails 3.0.0 and the @message.parent in new.html.erb does not display the parent attribute
If you'd like a tutorial for Jasmine, here is one I made: http://evanhahn.com/tape/how_do_i_jasmine.html
Hope it helps!
Used this technique to setup a simple playlist admin tool, but when I push it up to heroku the search isn't working consistently: some words are found and other sequence of letters aren't. Any pointers as to where to start?
Also, it works perfectly on the local server. But, isn't that always the case? :)
Also: writing your own controller action for generating the manifest file, makes it possible to generate a list of all the possible html-files the user may wish to see offline:
people/1
people/4
people/5
I'm happy with this solution. But I guess it won't be possible doing this if each user has a pretty big collection of records and files.
Thanks for the write up. I find that the rack-offline gem is good, but doesn't really fit my needs. I want the complete app to be available offline for a certain user (including all the users assets - thumbnails - saved with paperclip).
I've created a CacheManifest controller and model which loads a manifest with CacheManifestItems (another model) for each logged in user. If the user changes one of its files, the manifest get's updated the next time the user loads a page.
This works great: the entire app is available offline.
I put together a Rails 3 example app (with a detailed walk-through tutorial) that shows how to use Mongoid with OmniAuth (plus optional RSpec, Cucumber, and Haml): https://github.com/fortuity/rails3-mongoid-omniauth. It goes into more detail than the Railscast for those who need a full starter app.
Thank you for the screencast. :required => true does not seem to work in safari. Any one else see the same?
Great post! I have a question though. I have downloaded the source code for this episode. I start with the "chatter-before" project and follow along with the screencast.
My question is why when I send my curl command nothing happens? I have not set the faye token or set any security. I followed along exactly and just want the 'alert' function to happen before moving on.
Hello.
I followed your video, and got everything working. But now when i run my search through thinking_sphinx the pagination stops working... Any thoughts on that?
Cheers
Thank's i really love to use it.
livereload is what ! waiting for since so many time.
there is a livereload exetention for firefox 4 now :)
Hi, I've been experimenting with the source for this railscast and am trying to produce XML for the view of the books with the authors listed. I've got it working for Books and Authors using the following ....
respond_with(@book = Book.find(params[:id]))
in the controllers (only showing the books one above). But cannot figure out how to get the associated authors in the xml.
I've looked through the docs at http://guides.rubyonrails.org/ but can't find an example of how I'd actually get the associated authors included in the respond_with call.
I'm sure its probably trivial, but this is all new to me at the moment.
Has anyone any pointers?
Thanks,
John
Wonderful episode. I just had minor hickups in Rails3, but found the answers in the comments.
http://pastie.org/1868192
Thanks!
Hello,
I like your RailsCasts series.. :) I am using Ancesry for tree structure in my data. I want to draw
structurel organizatin chart.. How can i do that?
Regards.
Lol, ironic that Guard can't reload it's own config.
Pair guard with spork and guard-spork. Now you have even faster tests!
Wow, lots of spam above. Anyway, I just came across this and it was great because I was trying to figure out what all of that data was in the profiling trace and how to use it. I also thought I'd share that you can install:
sudo gem install newrelic_rpm
sudo gem install ruby-prof
- add a config/newrelic.yml file, which you can get by singing up for a free/lite newrelic account
- start up your app and click around
or
- go to http://127.0.0.1:3000/newrelic/ and click 'start profiling' then click around and go back to http://127.0.0.1:3000/newrelic/ to see the profiling traces
Here's a link for the newrelic developer mode stuff http://support.newrelic.com/kb/docs/developer-mode
Greg
I'm using
def name
[self.first_name, self.last_name].compact.join(' ')
end
:)
Hi,
i'm expecting problems with following line
(authentications.empty? || !password.blank?) && super
i cannot use super because of error
super: no superclass method `password_required?' for #<User:0xb129a20>
whats wrong?
Has anyone gotten this to work using form_tag instead of form_for? If so, would you please post an example? Thanks.
i installed jquery-rails and tried autocompletion, but i've got "Ajax is not defined" error,
some help? thnx!
Justin Zollars,
i've got the same issue,but i fixed it in my code.
you may have a model called TagName, so it is looping when you do a method call tag_name in your Inventory model.
Use the method :tag_name2 and try it out, like this:
<%= text_field_with_auto_complete :inventory, :tag_name2, { :size => 15 }, { :url => formatted_tags_path(:js), :method => :get, :param_name => 'search' } %>
hope i helped
Putting a RUBY_PLATFORM condition in the Gemfile is not a good idea. When installing an application bundle on the production server (different platform) with the --deployment or --frozen option, bundler will complain that the Gemfile does not match the Gemfile.lock.
However, I don't see an alternative right now...
I need to do two things:
1) Sign in and Sign Up on the same page.
2) Any time devise want's to redirect to 'sign_in', it needs to go to the afformentioned dual sign in/sign up page.
Im really dis-enjoying the limitations of devise since it is written funny.
I've tried to use this technique to also add new items, if they don't exist yet. Ryan Bates came up with a great idea and I used it like this:
https://gist.github.com/952240
Great tutorial (as always) and great plugin.
@Rick: That's why I never like the "Gang of Four" moniker. To me, the book is "Gamma, Helms, Johnson and Vlissides". I was fortunate to have a useful email exchange with John before his death.
Does anyone know of a way to 'hyperlink' from an rspec failure message to the correct file & line number in vim ??
Ryan,
Nice job once again.
I was sad to see that you deleted John V from the design patterns book author list, and replaced him with Richard Helms.
John is no longer with us, and so the surviving Gang of Four is now the Gang of Three.
And you never added Ralph, then again as the token Smalltalk member of the GOF he never got as much respect anyway. <G>