Posts tagged Rails3
Install Rails 3.1 on Windows, Mac and Linux
This is yet another guide.So much have been written. Probably replicates other guides which I have not checked. But this is updated for Rails 3.1.1.
This guide will constantly be updated as needed.
Continue reading »What You Should Know Before You Upgrade Your Rails 3 App To Rails 3.1 Beta
This is based on both research and experience.
I upgraded a Rails 3 app to Rails 3.1.
There were many issues. But they aren't much compared to the benefits you'd get from using the latest version. Rails 3.1 takes away a lot of pain. Instead of using asset packager, having sprockets makes it so much easier to deploy an optimized application. Not all frameworks have this. In fact it hasn't been a practice of certain developers to make sure that a single file is loaded for javascript in production and a single is loaded for stylesheet in production. Reversible migrations is another cool thing. Also read that there is no need to add ":multipart=>true" on a form if you use the file field.
Continue reading »Why You Have To Use Named Scopes for Rails 3
It's strange for me to write something that disputes my post earlier. I just spent an hour trying to fix "stack level too deep" error. Only to find out that it has to do with named scopes.
Continue reading »Thinking Sphinx for Rails 3
Sphinx is the de facto choice for Rails developers looking for a search solution or a full text search server. I've been using it for MySQL projects but there are other and potentially better options like Solr.
Continue reading »Rails 3 Template for Web Designers Who Use Windows
So I've been reading the discussion on PHRUG (Philippine Ruby Users Group) about Ruby on Rails and Windows. I have to agree with majority that eventually you have to learn Linux if you want to use Rails everyday. If you don't, you just can't go beyond frontend work.
Continue reading »Package Assets For Rails 3 and Upload to Amazon s3
I like to share this quickly for those who are concerned about application performance. Rails has always provided a way to cache assets. It's been very simple but when we think about the "cloud" and scaling, we realized it's a pain to actually make it all work with amazon s3.
Continue reading »How to Use jQuery For Rails 3
jQuery is the de facto Javascript framework used by happy programmers. I am very glad to use it in almost all of the applications I am working on.
There are many posts on how to use it for Rails 3. But here's another one which may help Rails 3 newbies (aren't we all newbies when it comes to Rails 3?).
Continue reading »Install RVM, Passenger, Nginx and Rails 3 on Ubuntu Lucid Lynx
This has been a problem encountered by several developers including myself:
Getting RVM, Passenger and Rails3 to work
Here's a quick and short post. Supposing you already have updated Ubuntu and have Ruby installed.
Continue reading »Rails 3 Upgrade Resources
Many of us have several existing 2.x applications and would want to upgrade without pulling our hair because we can't figure out something or we are wary of consuming too much time. I'm about to post several links where you could find useful advice on upgrading Rails 3. Feel free to share other links if you know some.
Continue reading »Why You Might Not Use Named Scopes In Rails3
It's interesting how Rails 3 querying is a lot easier than it was before.
Simple Task: Get all posts that are promoted to front page.
Some apps probably do not use the field "promoted" primarily because there's a published field then all published posts will be promoted on front page. But in Drupal, nodes have promoted field and I think most apps should too. Sometimes you wouldn't want to show everything on the front page or want some post on top of the list of posts.
Continue reading »How to Install and Use Rails 3 Generators
This is why Rails3's philosophy is agnosticism:
You can override default template engine (erb) through config/application.rb. So if you use HAML, running scaffold generator will create HAML files for the views. If you use Rspec for testing as most Ruby developers do, you may also specify rspec as the default test framework.
Continue reading »Rails 3 on Ubuntu Karmic Koala (Fivebean)
This is one of my "Getting Things Right" posts, a.k.a, "How The Hell Do I Set Up My Rails Site on a VPS host." It’s almost always more difficult to get things right than get things done. I tried Slicehost and Linode before and I always ended up rebuilding because I couldn't get the right setup.
Continue reading »