github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

casualjim / ironnails

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 42
    • 7
  • Source
  • Commits
  • Network (7)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Click here to lend your support to: ironnails and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

IronNails brings rails like development to IronRuby and WPF/Silverlight — Read more

  cancel

http://flanders.co.nz/2008/08/07/ironnails-introduction/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Removes the .stproject from the solution, not used anymore. Using Rubymine 
now 
unknown (author)
Fri Nov 13 01:57:06 -0800 2009
commit  7418c6d888a5b157ed4e25e5b41efb212bad952a
tree    5ce116d2bc83628902b7d4baa7916a3c62599d5c
parent  6595510d148ab151ee2f7a5aea014388c184616e
ironnails /
name age
history
message
directory IronNails.Contracts/ Loading commit data...
directory IronNails.Library/ Tue Dec 30 06:37:01 -0800 2008 It's working against the latest IronRuby revision [casualjim]
file IronNails.sln
directory IronNails/
file README Sun Nov 09 06:36:29 -0800 2008 Updated readme with current ironruby revision [casualjim]
directory libs/ Tue Dec 30 06:37:01 -0800 2008 It's working against the latest IronRuby revision [casualjim]
README
IronNails
=========

IronNails is a framework inspired by the Rails and rucola frameworks. It offers a rails-like way of developing 
applications with IronRuby and Windows Presentation Foundation (WPF).
This framework uses the pattern Model - ViewModel - View - Controller (M-VM-V-C). It should eventually be able to run on 
both WPF and Silverlight.
The idea is that the views can be created using a design tool like Blend for example and just save that xaml as is. The 
designer should not need to use anything else than drag and drop to create a GUI design. The behaviors are then added to 
the view by using predefined behaviors in the framework or by defining your own behavior.
The framework then generates a proxy for the view which will be used to transparently wire up the commands in the 
behaviors to controller actions. 

As this project evolves and IronRuby becomes more complete we will start to take on dependencies to other rubygems.
At this moment we only have a dependency to get logging going and we need to be able to do require 'logger' and require 
'fileutils'. In controllers, viewmodels, models and view proxies you now have the ability to log things in the same way 
Rails does.

You can run the application by giving the command rake run inside the application directory

You are now able to write the following code for a controller:

# file name: demo_controller.rb
class DemoController < IronNails::Controller::Base
  view_object :status_bar_message, "The status bar message"
  
  view_action :change_message
  
  def change_message
    @status_bar_message = "#@status_bar_message appended"
  end
end

# file name: DemoViewModel.cs
public class DemoViewModel : IronNails.View.ViewModel { }

# file name: demo.xaml
<Window 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:behaviors="clr-namespace:IronNails.Library.Behaviors;assembly=IronNails.Library"
    Title="Window1" Height="300" Width="300">
    <StackPanel>
        <TextBlock Text="{Binding Objects[StatusBarMessage].Value}" ></TextBlock>
        <Button Content="Click me" behaviors:ClickBehavior.LeftClick="{Binding Commands[ChangeMessage]}" />
    </StackPanel>
</Window>

If you want to run the project:
update IronRuby to the latest revision (currently r.170)
update the build_conf.yml file in the config folder to point to your ironruby bin folder. We need to copy some 
assemblies there.
type rake run in the ironnails directory ie. C:\projects\ironnails\ironnails\ > rake run

all help is welcome: ivan@flanders.co.nz

Help is wanted for implementing the following items a.o.

* RSpec stories
* Predefined behaviors
* Better xaml integration
* Encapsulation of automatic refreshing of models.
* support for multiple views tied to a controller
* Create a host project in which is an application that hosts the ironruby runtime and executes our nails application.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server