I am not using SqlLite anymore!!
I just want to trigger the action and display the view.
I am running ASP.NET 3.5 using ASP.NET build in server.
Here is everything:
Routes.rb:
#default routes
$routes.ignore_route("{resource}.axd/{*pathInfo}");
$routes.map_route("default", "{controller}/{action}/{id}", {:controller
=> 'Home', :action => 'index', :id => ''})
home_controller.rb:
class HomeController < Controller
def index
@message = "Welcome to ASP.NET MVC!"
view
end
def about
view
end
end
Views/Home/index.html.erb
<h2><%= html.encode(view_data.message) %></h2>
<p>
To learn more about ASP.NET MVC visit <a
href="http://asp.net/mvc" title="ASP.NET MVC
Website">http://asp.net/mvc</a>.
</p>
Global.asax:
public class MvcApplication : RubyMvcApplication
{
}
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core