
rails
Get flash to fully experience Pearltrees
sphinx
activerecord
Run Fat Boy .net » Blog Archive » Rails Migrations - Command Lin
Checkboxes are one of those things that look easy and should be easy, but they aren't always easy. I needed a solution that could create a checkbox list of languages that a user speaks. So I don't forget here's how to do it: The migrations are important. You have to be sure to exclude the id parameter when you create languages_users or you will get ' Mysql::Error: #23000Duplicate entry' due to the fact that ActiveRecord will try to store a value in the id field that indicates which model created the entry (User.languages << vs Langauges.users).
Checkbox list in Ruby on Rails using HABTM | Nobody Listens Anyw
Rails::Sublayouts
I was playing around with layouts in Rails the other day… I know, clearly I have too much time on my hands. But anyway, I found that you can fake a nested layout scheme in Rails by delegating view rendering to partials. As an added bonus, you don’t need to hack around with any of Rails’ internals to make it work. For example, let’s say I’m working on an application that has both a public layout and an admin layout. The public layout consists of tabs and a sidebar.Null is Love » Blog Archive » Pagination in Rails
Pagination is extremely important in any web application. Let’s say a client has a database with 10,000 cars for sale. You, the intrepid web developer, are hired to build a web front end to the database.rails::Full text search in Ruby on Rails 2 - MySQL
A Guide to The Rails Command Line
Alex Young: Rapid Rails Part 1: Command Line Mastery
Rapid Rails is a series of articles containing succinct tips to increase your productivity when working with Ruby on Rails . This is the first part, and shows you how to make the most of the command–line tools that come with Rails. Quickly generate migrationsRuby on Rails 101
While working on a CRM system in Ruby on Rails 2.2 I needed to find a way to email one of the users a weekly report. The report would be generated from the PDF templates already integrated with the front-end using the RTex plug-in for Rails . The solution was to include the following in an ActionMailer model to render the view away from the controller and attach the result to an email.
Ruby on Rails « Gregory Doran
Using a database to populate an Open Flash Chart graph
25 Jul Just got Archie Smuts comment asking how to populate a Open Flash Chart graph using results from a database . Just for reference, the code that follows represents this graph: <br /><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="600" height="300" id="chart_1217004188.58145" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/projects/open-flash-chart.swf?data=%2Fprojects%2Fopen_flash_chart2%2Fusing_database" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><embed src="/projects/open-flash-chart.swf?About:- Using open flash chart you can represent your data in the form of different type of graphs. Install Files:-
Open Flash Chart | Ruby on Rails India, Ruby on Rails in India,
A Guide to Active Record Associations
1 Why Associations? Why do we need associations between models? Because they make common operations simpler and easier in your code. For example, consider a simple Rails application that includes a model for customers and a model for orders.Sample Use Download the sample OFC2 project. rails testing_ofc_2 cd testing_ofc_2 script/plugin install git://github.com/pullmonkey/open_flash_chart.git If the above line did not work for you, you can also use http - script/plugin install http://github.com/pullmonkey/open_flash_chart.git script/generate controller test_it Add the following to the test_it_controller.rb in RAILS_ROOT/app/controllers: Add the following to index.html.erb in RAILS_ROOT/app/views/test_it/: Copy swfobject.js from the plugin's assets/ directory (will make this happen at install time later) to your RAILS_ROOT/public/javascripts directory Copy open-flash-chart.swf from the plugin's assets/ director to your RAILS_ROOT/public/ directory script/server Browse to http://localhost:3000/test_it Let me know how it goes, thanks. Sample Graphs View Source Code View Source Code

