>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Rolling with Ruby on Rails, Part 2 - rails recipe tags ruby part recipes view list

 
Registered tutorials: 501
Registered Users: 22759



Rating: 0 out of 0 votes cast


  
Category: Ruby on Rails

Rolling with Ruby on Rails, Part 2

Digg this   Post to del.icio.us

Abstract: It is the second tutorials in the serial. Now, Authors goes into details on some of them and presents a brief overview of the rest, with links to more detailed information.

In Rolling with Ruby on Rails, I barely scratched the surface of what you can do with Ruby on Rails. I didn't talk about data validation or database transactions, and I did not mention callbacks, unit testing, or caching. There was hardly a mention of the many helpers that Rails includes to make your life easier. I can't really do justice to all of these topics in the space of this article, but I will go into details on some of them and present a brief overview of the rest, with links to more detailed information.

Also, I purposely did not go into any detail about the Ruby programming language. If you are interested in a brief treatment of the whys behind the Ruby and Rails code that you saw in Part 1, then I highly recommend reading Amy Hoy's blog entry Really Getting Started in Rails.

Before I cover this stuff, I want to complete the homework items from the end of Part 1:

  • There is no longer any way to delete a recipe. Add a delete button (or link) to the edit template.
  • On the main recipes page, there aren't any links for the pages that let you manipulate categories. Fix that.
  • It would be nice to have a way to display only those recipes in a particular category. For example, maybe I'd like to see a list of all snack recipes, or all beverage recipes. On the page that lists all recipes, make each category name a link to a page that will display all of the recipes in that category.

One alert reader pointed out that after adding categories, it was no longer possible to add any new recipes because the new recipe action (as provided by the scaffolding) had no way to assign a category, and this caused the list recipes action to produce an error. This also needs fixing.


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 56
Unique Hits: 47


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.1 0.1 0.2 0.3 2.2 2.6
Current 0 0 0 0 1 1
Previous 1 1 1 1 0 0
Jun 28 0 0 0 0 5 6
Jun 27 0 0 0 0 3 3
Jun 26 0 0 0 0 4 4
Jun 25 0 0 0 0 0 0
Jun 24 0 0 0 0 3 3
Jun 23 0 0 0 0 4 7
Jun 22 0 0 0 0 0 0
Jun 21 0 0 1 2 2 2
Highest 3 3 4 4 5 7


Script Execution Time: 1.52037 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2