Tag: Ruby on Rails
Rails will add some new features and enhancements by merging with MERB. Should be interesting.
I’m sure anyone that has spent enough time with Rails has found this little annoyance. The basic find() is pretty simple.
result = Table.find(params[:id])
A select query is performed on Table that seeks the row whose primary key matches the value returned by params[:id] Pretty cool, until it fails
I ran into this problem awhile ago. I was tasked with making Excel reports using Ruby on Rails. Since I was running on Windows, I just used Win32ole. It worked quite well until I remembered that Win32 is not platform independent. Basically, if the system is hosted on a non-Windows machine the Excel Report will fail. Great. But, Ruby isn’t out for the count yet. I found a pretty cool spreadsheet generator at RubyForge. After installing spreadsheet, it is pretty simple to use. You can either install it by downloading it from the web, click HERE, or use ruby gems by typing this on the command line: “gem install spreadsheet-excel”