[Ironruby-core] Building IronPython from GitHub is busted

2009-06-23 Thread Jimmy Schementi
Just in case you use the IronRuby GIT repo to get both IronRuby and IronPython sources, the msbuild build is currently broken because some projects are missing. Jim, can you take a look? "C:\dev\ironruby\Merlin\Main\Languages\IronPython\IronPython.sln" (default target) (1) -> (Build target) ->

Re: [Ironruby-core] Accessing Database Using IronRuby

2009-06-23 Thread Jimmy Schementi
Thanks, the change has been made. From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Brannon Jones Sent: Wednesday, June 17, 2009 4:25 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Accessing Database Using IronRuby That code shou

Re: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example

2009-06-23 Thread Jimmy Schementi
I just made some updates so GEM_PATH can be set from web.config, so if you use those bits just make sure GemPath is set correctly in web.config and all should work well. http://github.com/jschementi/ironruby/commit/4dd9655f4a48326fb1270a2eb2cf5d1f96d7c3b0 > -Original Message- > From: iro

Re: [Ironruby-core] Code Review: HashFixes

2009-06-23 Thread Jimmy Schementi
How are we going to make sure this gets back into REXML and RubyGems? We shouldn't ship significantly different versions of the Ruby stdlib, as people will expect to switch to any version of the stdlib without issues. My first thought is to have someone in the community step up to propose these

Re: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example

2009-06-23 Thread Jimmy Schementi
> -Original Message- > From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core- > boun...@rubyforge.org] On Behalf Of Ted Milker > Sent: Tuesday, June 23, 2009 1:07 PM > To: ironruby-core@rubyforge.org > Subject: [Ironruby-core] Assistance Needed Running IronRuby.Rack.Example > > Co

[Ironruby-core] Code Review: HashFixes

2009-06-23 Thread Tomas Matousek
tfpt review "/shelveset:HashFixes;REDMOND\tomat" Fixes implementation of hash methods in REXML and RubyGems. The current implementation is incorrect since it sums hash codes of subcomponents potentially overflowing to Bignum. This issue is mainly exposed when calculating hash of an array. A

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
To make it work I only made 1 change. I have a debug build of System.Web.Mvc.dll in the sample. I referenced that one and rebuilt then hit F5 to start cassini and it worked The ironrubymvc dll is built against that debug version so it expects that. I have to fix that at some point --- Met vriendel

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
ivan at flanders dot co dot nz --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jun 23, 2009 at 10:19 PM, Mohammad Azam wrote: > Where

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
Where can I get your email? -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
did you compile the new project?Can you email me your project so I can take a look.. instead of asking all these questions? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (ht

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
Is there any web.config setting that needs to be done? -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
yes, I have created ASP.NET MVC application before on my machine and it did work. I have restarted the server but no use! Your sample does work but it throws some assembly errors. I can avoid those errors by going to controller actions. But, I don't know why it does not work for a new project.

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
it fails much earlier than at the controller. you should never get to that page because that is just plain vanilla asp.net mvc stuff has nothing to do with ironruby mvc. Have you created an asp.net mvc application before on your machine? Did that work? I copied your code to a new project and stil

[Ironruby-core] Assistance Needed Running IronRuby.Rack.Example

2009-06-23 Thread Ted Milker
Could I get some assistance in running rack on IronRuby? I am just trying out: http://github.com/jschementi/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack from RailsConf, not the latest one from the IronRuby tree. Everything has built successfully and I had to modify Web.config to point t

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
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}/{actio

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
which OS and web server are you using? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jun 23, 2009 at 9:46 PM, Mohammad Azam wrote:

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
http://github.com/casualjim/ironrubymvc-sample/blob/75a1aee810e2b2b5a99a538cc73ca89b0a3df438/IR_Todo/Global.asax.cs#L12 You also need to change this assembly redirection in the config file to point to the correct version number of your sqlite assembly. http://github.com/casualjim/ironrubymvc-sampl

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
I copied your code to a new project and still it is giving me issues. It is not picking up the Routes.rb file. Is there anything interesting in ApplicationController since I am not using ApplicationController. -- Posted via http://www.ruby-forum.com/. ___

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
In your download you never subclass from RubyMvcApplication. I have tried to subclass from RubyMvcApplication but it is giving me the same issue: The incoming request does not match any route. Description: An unhandled exception occurred during the execution of the current web request. Please

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
The ironruby mvc library being System.Web.Mvc.IronRuby.dll and the routes got borked $routes.ignore_route "{resource}.axd/{*pathInfo}" $routes.map_route "default", "{controller}/{action}/{id}", :controller => 'Home', :action => 'index', :id => ''" I suggest you take jimmy's repository of ironrubym

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
Sqlite lib: http://sourceforge.net/project/showfiles.php?group_id=132486&package_id=145568 You need to have a reference to the ironrubymvc library and compile the asp.net mvc project once from then on things should start to work. Getting started 1. Install ASP.NET MVC (link?) 2. Create a

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
Where can I download the 32 bit version? Ivan Porto carrero wrote: > You have a 32-bit machine right? > You need to download the 32-bit version of the System.Data.SQLite.dll > and > replace that one.. I've got one here if you want it, email me off-list > --- > Met vriendelijke groeten - Best reg

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
Is there any link between the IronRubyMvcLibrary? Do I need that library? How will the application know to load the routes from routes.rb file? -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
Here is the latest error: The incoming request does not match any route. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Syst

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
I have not tried it with the SqlLite assembly. I am simply trying to say "/home" and it should trigger the HomeController. I am following this example: http://haacked.com/archive/2008/04/22/defining-asp.net-mvc-routes-and-views-in-ironruby.aspx -- Posted via http://www.ruby-forum.com/. __

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
Does the sample work on your machine if you use the correct sqlite assembly? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jun 23, 2

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
If I load the Default.aspx page I get the following error: The incoming request does not match any route. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in t

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
Do I also need mvc_application even thought I am not using the LightSpeed data access layer? -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
I tried it! It is throwing a 404 error: The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is sp

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
rename them to .html.erb that should work. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, Jun 23, 2009 at 8:31 PM, Mohammad Azam wro

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
Is there any special place where you register the ViewEngine. I have files with extensions .rhtml but they are not being picked up by the MVC application. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
Asp.net MVC has the ability to add view engines Each view engine defines a bunch of search patterns, and you can configure the location of the views but the convention is views so I'd stick with that :) When you request the view "index" the controller will ask the view engines collection if it can

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Ivan Porto Carrero
You have a 32-bit machine right? You need to download the 32-bit version of the System.Data.SQLite.dll and replace that one.. I've got one here if you want it, email me off-list --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://

Re: [Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
For some reason it is not running for me out of the box. When I run the application the following exception is thrown: Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program with an incorrect format. Even though the reference to

[Ironruby-core] Question about Ivan Porto carrero MVC Sample

2009-06-23 Thread Mohammad Azam
Hi Ivan Porto carrero, Great work on the MVC IronRuby sample! I am curious to know how it works! I created an ASP.NET MVC application. I created the controller and view but how will the views get called. Here is my controller: require 'application_controller' class HomeController < Application

Re: [Ironruby-core] Dynamic Binding fails if abstract event not implemented

2009-06-23 Thread Kevin Radcliffe
Ivan Porto carrero wrote: > I've been meaning to ask this for a while now. > Can I implement an event that is defined on an interface because > whichever > way I try it just won't work. > > public interface IHaveAnEvent { event EventHandler SomeEvent; } > > class EventImplementor > include IHa

Re: [Ironruby-core] Dynamic Binding fails if abstract event not implemented

2009-06-23 Thread Ivan Porto Carrero
I've been meaning to ask this for a while now. Can I implement an event that is defined on an interface because whichever way I try it just won't work. public interface IHaveAnEvent { event EventHandler SomeEvent; } class EventImplementor include IHaveAnEvent # what now? I can't find any tes

Re: [Ironruby-core] Dynamic Binding fails if abstract event not implemented

2009-06-23 Thread Xerxes Battiwalla
Actually the AbstractHelloWorld is used as a work-around for implementing the interface directly in ruby (see http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=772), so implementing it in C# gives us no benefit. I did try (in our codebase, i havent tested this particular example) removing