Posts [ 81 to 100 of 134 ]

Re: Tutorial Requests

Tutorial on having checkboxes for acts_as_tree items?

I'm working on a project that involves the user to be able to view, create, edit, and delete directories.So, the model of directory includes "acts_as_tree".And I've done the code for listing them directories, with bullets n indentation n stuff.Now, I want each directory to have a checkbox against its name.Essentially, the user should be able to select multiple directories (with the check boxes), and when he clicks on the delete button, all the selected directories should be deleted.Initially, I had done such that each directory has a delete link next to it, which will delete the directory.But now, I want jsut one delete button to do it all for the selected directories.Some one pelase help me with this.I am very very new to ruby on rails.

Re: Tutorial Requests

A simple, concise Rails 2.0 tutorial which demonstrates how to handle (Create Read Update Delete) multiple models (more than two) in a single form with a diverse range of field types (checkbox, radio button, drop down list, etc.). Thanks in advance. I'm getting excited already just thinking about it. I know that some of the subscribers to this forum have done something similar in the past with two models in one form, so I know I'm in the right place to make this request. Walter.

Re: Tutorial Requests

I would love to see a tutorial on how to make a "Suggestion Box" with ActionMailer. So a visitor on the site could basically send an email to a hard coded email address like suggestions@example.com. There would be two forms, one for the message and one for a return address or url as verification. I would also like to use a captcha, but don't worry about that. Note: I've read tutorials on ActionMailer, but all required registering users on the system and I want to avoid that complication for this task. I'm using Rails 2.0.x. Thank you very much in advance.

Re: Tutorial Requests

wmlockhart wrote:

A simple, concise Rails 2.0 tutorial which demonstrates how to handle (Create Read Update Delete) multiple models (more than two) in a single form with a diverse range of field types (checkbox, radio button, drop down list, etc.). Thanks in advance. I'm getting excited already just thinking about it. I know that some of the subscribers to this forum have done something similar in the past with two models in one form, so I know I'm in the right place to make this request. Walter.

Re: Tutorial Requests

I'd love to see a tutorial on how RoR works on the inside.

Most Ruby on Rails books and tutorials, or at least all the ones I have read, start with a simple application with modest requirements and show how to create and migrate the database and how to generate a scaffold based UI.

This is all well and good, but when I try to move beyond scaffold to the web application UI that I want, I quickly find myself mired in a swamp up to my eye-balls.

Or, to mangle another metaphor, working though the examples and tutorials is like watching a magic show, but I need to figure out how the tricks work.

What I am trying to create (as a learning exercise and not a paying gig, thank God!) is yet again another ToDo list application with some very non-scaffold like elements including:1. A two columns welcome screen with login on the left and register in the right. Successful completion of either of these leads to ...2. A three column working screen with the user's ToDo items organized as a tree on the left, a list of the ToDo items under the selected element in the center, and an always open form on the right that can be used to add or edit ToDo items at any time. I will eventually use JavaScript to set the initial focus on the first field in this form.3. In general, all lists will be of incomplete items in inverse order by priority where priority is not a field in the database but rather computed from other fields in the record.4. Complete page refreshes for now, but eventually AJAXed.

So far, I keep bumping up against redirects that don't redirect or redirects that do work, but display the layout for where I came from instead of where I went to.

Clearly, there's stuff going on that I didn't fully internalize by working through the examples. I come from Java/Swing background where I wrote all the glue code that bound all the various API calls together and I bring zero experience to this kind of framework, where the man behind the curtain reaches out and runs little snippets of code I write, code I didn't have to write, or code that gets generated based on hints that I configure into the code (has_many, acts_like_tree, etc.).

This is like the exact opposite of what I've done in the past and, to mangle a final metaphor, I'm finding it heavy sledding.

What I would love to find is a walk-though of a RoR application describing how, why, and when the flow of control is transferred between Controllers (including helpers), Models, and Views (including Layouts and Partials). I would also love to know how render and redirect calls effect (and don't effect this process) and how stuff gets into and goes out of scope.

Does anyone have any suggestions where I might find a document of this nature?

Re: Tutorial Requests

Vern McGeorge wrote:

I'd love to see a tutorial on how RoR works on the inside.

Most Ruby on Rails books and tutorials, or at least all the ones I have read, start with a simple application with modest requirements and show how to create and migrate the database and how to generate a scaffold based UI.

This is all well and good, but when I try to move beyond scaffold to the web application UI that I want, I quickly find myself mired in a swamp up to my eye-balls.

Or, to mangle another metaphor, working though the examples and tutorials is like watching a magic show, but I need to figure out how the tricks work.

What I am trying to create (as a learning exercise and not a paying gig, thank God!) is yet again another ToDo list application with some very non-scaffold like elements including:1. A two columns welcome screen with login on the left and register in the right. Successful completion of either of these leads to ...2. A three column working screen with the user's ToDo items organized as a tree on the left, a list of the ToDo items under the selected element in the center, and an always open form on the right that can be used to add or edit ToDo items at any time. I will eventually use JavaScript to set the initial focus on the first field in this form.3. In general, all lists will be of incomplete items in inverse order by priority where priority is not a field in the database but rather computed from other fields in the record.4. Complete page refreshes for now, but eventually AJAXed.

So far, I keep bumping up against redirects that don't redirect or redirects that do work, but display the layout for where I came from instead of where I went to.

Clearly, there's stuff going on that I didn't fully internalize by working through the examples. I come from Java/Swing background where I wrote all the glue code that bound all the various API calls together and I bring zero experience to this kind of framework, where the man behind the curtain reaches out and runs little snippets of code I write, code I didn't have to write, or code that gets generated based on hints that I configure into the code (has_many, acts_like_tree, etc.).

This is like the exact opposite of what I've done in the past and, to mangle a final metaphor, I'm finding it heavy sledding.

What I would love to find is a walk-though of a RoR application describing how, why, and when the flow of control is transferred between Controllers (including helpers), Models, and Views (including Layouts and Partials). I would also love to know how render and redirect calls effect (and don't effect this process) and how stuff gets into and goes out of scope.

Does anyone have any suggestions where I might find a document of this nature?

Vern, have you tried Peepcode screencasts? IIRC there's one on Rails 2 & REST follows the development of a TODO list app. Spend $40 or so on a subscription - it's worth it. Just a few quick points, though;

Re: Tutorial Requests

I think too often some (not all) tutorials are focused on a quick fix of some kind. Roob newbs in general are looking for these kinds of fixes. But there are also a lot of us who have a desire to know how rails, and Ruby for that matter work below the surface. I think if we cultivate an interest more in theory and understanding through tutorials with a larger scope, we'll end up with better developers, and in the end a better framework. So that's what I'd like to see.

Most Rails tutorial stopped after building the "comments" and "blog" has_many model. It will be helpful to see how Rails views can handle a header section plus a table (grid) of invoice items, and the items can be CRUD on the same invoice header view.

2 "Add item..." in a combo box

The typical example is "Add a label" in Gmail

3 QBE (Query by example)

To allow users to add/select columns from a model, to build a form/view. After that, a "Search" button to list the result in a paginated view. Select one to go to the edit view.

How to position a lot of (like those hotel reservation form) fields orderly in a view? For example, two columns one page, align "Description" and "field content" in each column nicely. How can we do that nicely with a Form submit. Even better, it's a has_many form (the invoice example).

Thank you!

I'll also use the chance to thank very much for railsforum and railscasts. These two are among the best resources and I learn a lot from, other than the popular Rails books.

Hope that more great tutorials can bring the beauty of Rails to traditional SME application development environment!

Re: Tutorial Requests

Anyone know where I can download a video tutorial on ROR... It's my 1st tym using ROR.. I've beenlately using PHP.. Unfortunately I don't have internet access at home so what i really need is to download a video tutorial..

Re: Tutorial Requests

aguroyz wrote:

Anyone know where I can download a video tutorial on ROR... It's my 1st tym using ROR.. I've beenlately using PHP.. Unfortunately I don't have internet access at home so what i really need is to download a video tutorial..

Re: Tutorial Requests

If you are serious about learning Ruby on Rails, I highly recommend you take a look at the Pragmatic Bookshelf. They have a lots of books and screencasts series (Everyday ActiveRecord and Mastering Rails Form). Peepcode has screencasts as well which I think are really good.

Re: Tutorial Requests

Please post all requests for future tutorials in this thread, rather than creating new threads. Writers can reply here to indicate if they intend to create a tutorial to fill a specific request.

Frankly, I'm stumped on date / time conversion and manipulation in RoR. I finally tricked an access database to giving me a time I could migrate to mysql (by giving it a fake date), and a date I could migrate (with a fake time). Now all I need to do is take the time from the one, the date from the other, save them together. And I'll have a timestamp or two I need.

I have searched and searched, it's silly - it shouldn't be this hard to find information about such ordinary daily time / date manipulations. I know.. it's out there in the API.

I'd love to get my hands on a good tutorial about this stuff. It comes up all the time.

Re: Tutorial Requests

I'm brand brand new to all this stuff. I was a hardware guy and in that time I learned HTML and a little css. (I'm not a programmer or developer by any means). I am however wicked interested in it and am looking for some new ways to pull in some cash.

Anyway, I need some super basic tutorials and help. Assume I know nothing...nothing. I think I have everything installed correctly. I'm at the point where I don't know what questions to even ask. Any help would be greatly appreciated. Thanks in advance.