I've searched for railscast 198 updated to rails 3, I can find some snippets here and there but can't find anything for the full source code.. hey it's worth a search; I'm a noob and don't know all the changes that transitioning rails 2 to rails 3 takes.
I run into the problem periodically where I want to use the method in a Railscast episode, but it's for an older version of rails, and run into a few bumps along the way. I've benefited from railscasts more than any information on rails out there, (even stackoverflow is distant 2nd), but this, it seems to me, is the biggest problem with railscasts. Anyone should be able to update the episode source code, it would be great if it would be easy for others to find.
Is there a site or group of people or easy way to find the fork that updates the full episode source code to the current version of rails? +1 if you would use this!
Is this what you are looking for? https://github.com/ryanb/railscasts-episodes
Ryan usually updates his casts(198 was an updated version of 165) so if anyone has it, it's him.
Related
What are some good rails 3 tutorials for implementing Authlogic? The example listed on github is quite outdated and while the Railscast example does a great job of explaining everything it is beginning to show its age.
I've heard mixed reviews about devise but after installing it, watching several railscasts on its capabilities, and going through the tutorials I've decided to stick with it.
Try devise, its a lot simpler :)
I've decided to start wrapping my head around Rails 3 by trying to build a website with it. I'm very new to it, and really I'm just looking for advice on how to get started. I've asked questions on here before and been asked "What have you already tried?", and in this case I've tried following a couple of tutorials I've found online, but they've all been for Rails 1 or 2, and there seems to be some differences in 3 I don't understand.
As for why I'm set on using Rails 3 and not 1 or 2 - it's to get up to speed at work, I've so far concentrated on front end development, but want to start branching out and doing more complex stuff.
What I want this site to do is allow a user to upload an image that is then displayed as a list item on the home page (later I'll add lightbox and stuff to it, but I figure that'll be easy to sort out).
Any advice or pointers to advice would be greatly appreciated.
Cheers!
File uploads in Rails are fairly well documented but as you've mentioned, a lot of the tutorials online are based around Rails 2.x.
If you're just starting out, I would recommend using either paperclip or CarrierWave to handle file uploads in a Rails app. Both projects are really good but I think you'll find that CarrierWave is more flexible in the long run.
Also, as a beginner to Rails, you might also want to checkout Ryan Bates' RailsCasts which are just an incredible resource for all things Rails. In fact, both CarrierWave and Paperclip file uploads are covered in the episodes. I've provided the links below.
#253 - CarrierWave File Uploads - this is Rails 3 specific.
#134 - Paperclip - Rails 2 but the information provided here along with the README on the projects GitHub page should provide you with the information you require.
This railscast is honestly all you need: http://railscasts.com/episodes/253-carrierwave-file-uploads
It will use Carrierwave for uploading and RMagick for image processing.
Lastly: nobody reasonable is going to recommend Rails 1 or 2 at this point. Just start with 3.2.5 and be good.
I'm coming from C#, and recently I started to write some Ruby on Rails applications.
My biggest problem with it is the documentation because I find it extremly difficult to use. For example, finding out how to call generator from my controller took me about 2 hours and then 15 minutes after that I found Rails::Generators.invoke method to figure out what arguments should I pass to this function.
Maybe I use the documentation the wrong way; First I take a wild guess and search in the Netbeans code completion, which is rarely helpful, then I search in Google, then go with the API.
Can some experienced Rails programmer give me some advice?
If you're new to rails I recommend you read a book before you dive into the API documentation.
Here are two recommendations:
Agile Web Development With Rails - Great introduction and reference on how to use rails.
Programming Ruby 1.9: The Pragmatic Programmers' Guide - More on Ruby. Great references!
After you've worked your way through those books, you'll have an idea of how Rails is designed and where to look for stuff.
Both books are great reference books. If you want to access the Rails and Ruby API's online, make sure to checkout RailsApi.com
I am describing my own very personal workflow with Ruby/Rails documentation:
You can use ri and rdoc if you are familiar with the console, but...
Personally, I recommend two very good Ruby/Rails documentation sites:
apidock.com (no good search, but sometimes fine examples)
railsapi.com (very good AJAX search, plus you can customize what documentation you would like to see - by versions and by Gems)
Every iteration of the Rails guides (http://guides.rubyonrails.org/) has a ton of useful stuff in it. That should be the first stop.
After that I search away in the API - http://api.rubyonrails.org.
Sometimes I even end up just reading the source code trying to find things - https://github.com/rails/rails.
I think the best place in the source code to be reading is in here - https://github.com/rails/rails/tree/master/railties/lib/rails.
I upvoted each of the other answers here.
What ruby based forum software would you recommend for integration into an existing rails application and allows single sign-on? I have seen many suggestions in posts for forum software that is no longer maintained (2008 and earlier).
Beast is the most current one I know of, and I'm sure it's the one you are referencing.
The rest is more of a side note, but, when I first got into rails, i asked similar questions, aka, what is the best blog, cms, forum, etc to use? As it turns out, the Rails community as a whole is interested in use cases that fit outside the plug-n-play web apps, so most people will end up rolling their own to fit their needs exactly if they find occasion to build such an app in Rails. The good news is that I think that I remember hearing that beast is like 800 lines of code, so it can't been too burdensome to either upgrade out of 2.2ish rails or just copy over the logic you need for your forum.
Thredded is very actively maintained!
Thredded is a Rails engine, so it is very easy to integrate it into an existing app.
http://github.com/radar/rboard
Rboard is really pretty awesome. :)
I always refer to Ruby Toolbox on what the rails comunity prefers.
Here's a good reference http://ruby-toolbox.com/categories/forum_systems.html
Based on the list there are two projects
Rboard - last commit 25 days ago
altered_beast - last commit 12 months ago
I agree with Jed Schneider, in the end most rails guys will roll out their own to fit the exact needs.
Forem and Discourse look promising:
https://github.com/radar/forem
https://github.com/discourse/discourse
I'm wondering how to implement highlighting of changes to user edited articles on a wiki style rails project. Since articles may be fairly lengthy I'd ideally like strikethrough and highlighting, similar to github and wikipedia for example. Despite searching around the net I've not really come up with much, apart from instiki which is a complete wiki application.
Thanks in advance for any advice.
To implement in Rails, you should use the a version management gem such as vestal version. Ryan Bates did an excellent screen-cast on the subject. Once you get the versioning of articles, you will want to use the html-diff (or a similar library) to do the html output.