Quantcast
Channel: Learning Ruby on Rails
Browsing latest articles
Browse All 25 View Live

Ruby on Rails Caching

Gregg Pollack over at Rails Envy posted two articles on Ruby on Rails Caching. If you have performance issue, you might want to check them out.Ruby on Rails Caching Tutorial - Part 1Ruby on Rails...

View Article



How to use migration

Yavor Ivanov over at rubycorner.net started a mini series on Rails migration. So far there is one article and I already learned a few things that I didn't know.How to use Rails Migrations - Part II...

View Article

NetBeans IDE 6.0 M8 is out

I just installed NetBeans IDE 6.0 M8 and noticed that you can start and stop WEBrick within NetBeans now. Before this release, you would have to kill the java task from the task manager which was a...

View Article

NetBeans IDE 6.0 M9 is out

I just saw that NetBeans 6 Milestone 9 was released. Go here to see all the changes for M9. There are many new features added for Javascript. You can edit embedded Javascript and CSS inside HTML/JSP....

View Article

How to pass a class or id to link_to_remote

This does seem like a really simple thing now that I figured out how to do it.<%= link_to_remote 'Name',{:url => {:controller => 'some_controller', :action =>'some_action', :id =>...

View Article


observe_field and radio_button

I had a group of radio buttons that I wanted to trigger some action when one of the button is selected. I setup an observe_field for each radio button but it didn't work. You can't specify...

View Article

Where to put the code

That is the question I ask all the time while developing in Rails. Should I put the code in the helper or in the model or in the controller itself. I guess I need to find some advance Rails reading...

View Article

Build FaceBook Application using Rails

Here are links to two blog articles on how to build FaceBook application using Rails.From GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS:fist in your facebookFrom Liverail >> Rails with...

View Article


Developing ROR using Emacs

I saw a few screencast on using Emacs to do ROR development but I was not able to setup emacs to try it out until I saw this five part series on setting up Emacs for Ruby on Rails development from...

View Article


NetBeans IDE 6.0 M10 is out

Netbeans 6.0 M10 is out. There are many editing and debugging improvement for RHTML files. Here is the new feature sections for Ruby development.Find UsagesRename RefactoringRHTML supportDebugging...

View Article

Mongrel installed in wrong location?

I just reinstall my rails stack to use ruby 1.8.6 and mongrel wouldn't start. I kept getting this error instead.C:/languages/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in...

View Article

Rails 2.0.1 is out

I am sure this is all over the web but Rails 2.0.1 is out and here is the announcement. I probably won't use it for my current project until after we do a release.

View Article

NetBeans 6 - Out of Memory Exception

Lately, I have been getting Out of Memory Exception every time NetBeans load up. This is the exception message, "java.lang.OutOfMemoryError: Java heap space". I am using the daily build of the custom...

View Article


added method to help create and drop foreign key

We have a naming convention at my work place for foreign key so I made two methods to help in the creation and dropping of foreign key. I made them because I got tired of typing out the query...

View Article

AUTO_INCREMENT MySQL

There is a bug in MySQL that reset AUTO_INCREMENT if an index is added and the table is empty. I found a ticket regarding this issue in Ruby on Rails' bug tracker but it won't be fix because it is a...

View Article


Understanding include and extend in Ruby

I was watching a presentation by Dave Thomas called, "MetaProgramming - Extending Ruby for Fun and Profit", and realized that my understanding of include and extend is mixed up.My Wrong UnderstandingI...

View Article

adding special helpers

I was cleaning up my view and decided that I want to add two helpers, display_if and display_unless to help clean up the view.Instead of doing: Hello .It would be like this: Hello .I came from the...

View Article


Encryption Data in Ruby using OpenSSL

I had been searching the web for a way to encrypt some data for my Rails project for a while and I finally found something that I could use. Encrypting Sensitive Data with Ruby (on Rails) has straight...

View Article

Expose Module methods as Instance and Class methods

Have you ever wondered how to include a Module and has its methods be available as instance methods and class methods? I certainly did and after doing a little research I figured out a way to do this...

View Article

Converts a comma separated string of numbers into an array of integers

This is all there is to convert a string of comma separated integers to an array of integers.>> "1,24,53,6,23,6,5".split(",").collect{ |s| s.to_i }=> [1, 24, 53, 6, 23, 6, 5]This is why Ruby...

View Article

What happened to nbrubyide daily build?

What happened to daily build of nbrubyide? I have been checking the last few days and there is no new build. I am so used to getting my morning nbrubyide fix. This is not a complain. I am just...

View Article


form_remote_tag with ajax and none ajax action

Does anyone else having the same problem as I do when trying to set the url for AJAX and none AJAX actions for the form_remote_tag? I always seem to forget how to do this. It always take me a couple of...

View Article


Developing Ruby on Windows Platform

There is an interesting discussion over at Ruby Inside regarding "Is Windows a First Class Platform for Ruby"? I think there are two parts to this question.Windows is definitely viable as a development...

View Article

Rails is moving over to Github

It looks like keeping up with edge Rails for Windows' users will get harder in the very near future. Here is the post announcing the move from using SVN to Git. I look into using Git on Windows before...

View Article

Dreamhost added ability to host Rails app using Passenger

I just saw this, Introducing Passenger for Ruby on Rails, on Dreamhost Blog. This should make deploying Rails applications on Dreamhost really simple now.Passenger is mod_rails for Apache, as stated on...

View Article

Browsing latest articles
Browse All 25 View Live




Latest Images