Hey all, I did a script/generate controler users in console.
Then I added the following to users controller: class UsersController < ApplicationController def initialize(first_name, last_name) @first_name = first_name @last_name = last_name end def full_name() return "#...@first_name} + #...@last_name}" end end I have this in users/index.html.erb <% user = UsersController.new("John", "Merlino") %> <h1><%= puts(user.full_name()) %></h1> and in routes: map.root :controller => 'users' I get error: ArgumentError in UsersController#index wrong number of arguments (0 for 2) Thanks for response. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.