Skip to content

Instantly share code, notes, and snippets.

View JoshReedSchramm's full-sized avatar

Josh Schramm JoshReedSchramm

View GitHub Profile
// How you could do what you want in Ember
App.Router.map(function(){
this.resource("userSession", function(){
this.route("new", { path: "/sign-in" });
})
});
// However, any time you create a resource you have an extra layer of routing
// & a model that you may/may not want. In the case of sign-in, which doesn't
/* So I didn't really address the naming piece, but I'd start by going down this route */
public class Task : ActiveRecord
{
public string Name { get; set; }
public int AssignedTo_UserId { get; set; }
public DateTime DueOn { get; set; }
private INotifier _notifier;