Hey all,
I upgraded MonoRail to the latest version and now $HtmlHelper.InputFile and $HtmlHelper.DateTime don't get parsed. Were these removed and are there equivalents for these now?
Thanks,
Justin
...
I just saw castleproject.org has released the 2.0 version of monorail in January 2010 (we are still using the 1.0RC3).
Is this version (still) compatible with .NET 2.0 (or Visual Studio 2005), and if it does will I face any problems upgrading a current web application from 1.0RC3 to 2.0?
Source code changes to monorail 2.0 and / or con...
I'm trying to use a Checkboxlist in MonoRail to represent a many to many table relationship. There is a Special table, SpecialTag table, and then a SpecialTagging table which is the many to many mapping table between Special and SpecialTag.
Here is an excerpt from the Special model class:
[HasAndBelongsToMany(typeof(SpecialTag),
...
Hello All, I am quite blocked about an exception.
I am using Active Record and Monorail. I was able to use the scaffold controllers in monorail, until I add new models.
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[System.String,NHibernate.Ma...
Does anyone know of a good book on the Castle Project?
I'm interested in learning more about any of the Castle projects (ActiveRecord, MonoRail, Windsor, anything!) and searches for Castle on Amazon are a little frustrating with the need to weed out all the fiction and nonsense.
...
I have a question and I hope you can help me solve it...
I have a castle monorails application. In web.config file in httphandlers I have *.aspx maped to monorails (my hosting does not suport other extensions...)
<add verb="*" path="*.aspx" type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,Castle.MonoRail.Framework"/>
The pro...
I'm facing an issue that seems to be related to configuration.
I have a webapplication based on MonoRail, where we utilize the routing feature from MonoRail. On the first request after the application has started, the routing isn't initialized. To circumvent this, I have the following code in Application_OnError():
public virtual void ...
Hi All,
In our system most of the code is in an asp.net (2.0) web site, I discovered Castle Monorail a few month ago and I think it's really easier to use than asp.net / webforms.
Here is what we need :
- Use Castle Monorail
- Our code must be in the website (my chief is a kind of old school web developer so he prefer to have some "....
Hey,
I'm trying to get businesses within a certain number of miles of a user, using a formula to get the distance between the lat/long of the business and the lat/long of the user. Here is the code:
var criteria = DetachedCriteria.For<Core.Models.Business>(); criteria.Add(Restrictions.Le(String.Format(@"(3959*acos(cos(radians({0})...
Hey,
I'm using MonoRail and want to render the same view from two separate areas. I looked at all of the RenderView overloads and none of them have an area parameter, which seems odd to me. As a workaround I could create a user control and have two separate views, but it'd be nice to know if there's a way to call a view in a different a...
Is it possible to use the Microsoft (or Mono) supplied System.Web.Routing instead of the MonoRail routing stuff when building a Castle MonoRail app for ASP.NET? Any good information on how to implement this as a solution? Pros and cons?
...
How do I get a release build (equivalent of a publish on an ASP.NET web app) for a castlerock monorail web app? I've tried doing Publish but it only copies over the bin & Content folders and the Default.aspx, Global.asax, & Web.Config files, it doesn't even copy over the Views folder.
...
I'm using Windows 7 (IIS 7.5) and have been struggling with getting it setup to use extensionless url's. This is what my web.config looks like:
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<clear />
<add name="ASPX" path="*.aspx" verb="*" type="" modules="IsapiM...
I'm using monorail, activerecord, and jquery. I have a form with a zip code textbox. I have in my active record class associated to the form:
[Property]
[ValidateNonEmpty]
[ValidateRegExp(@"/^\d{5}(-\d{4})?$/", "Invalid")]
public string ZipCode { get; set; }
As you can see, I'm using the ValidateRegExp attribut...
I'm using monorail and jQuery validation. The issue is that when you use the FormHelpers, such as:
$FormHelper.TextField("user.username")
It generates the following html:
<input type="text" value="" name="user.username" id="user_username">
It also generates the following jQuery validate rule (via activerecord's ValidateRegExp attri...
I've got filters applied to my controllers, and I need to dynamically get the parameter given to the filter applied to the controller. The first thought that probably comes to your mind is "why?", but we're configuring the navigation so it knows what to render and when dependent on the filter's parameter. In this case it's a security r...
Loosely related to this post, I need to get a list of all controllers in the controllers folder. We're just experimenting with some stuff at the moment. I've searched through API's etc. without any luck. I can get the current controller just fine, but not the others unfortunately.
I've had to statically create a list of instantiated ...
I don't suppose anyone's clued up on this? The documentation is terrible and far outdated (the best resource I could find was dated 2006).
My form:
<form action="DoCreate.rails" method="post">
${FormHelper.LabelFor("master.Name", "Name", {"class":"label"})}
${FormHelper.TextField("master.Name", {"class":"text-input full-width"...
I've been following this guide and coming up with my own concoction in order to use MonoRail's FormHelper.Select that is generated from an enum. So here's the Brail syntax:
${FormHelper.Select("user.Role", ${LS.EnumToPairs(Roles)}, {"value":"First", "text":"Second"})}
"LS" is just my own helper, which I've defined as follows:
public...
Hi,
I'd like to build a localised web app with MonoRail and Brail.
http://www.castleproject.org/monorail/documentation/trunk/usersguide/...
describes how to translate basic strings, and I can do that. However
I'm struggling with translation strings containing variables like:
Welcome ${user}
This renders
Welcome ${user}
instead of ...