Skip to content

Instantly share code, notes, and snippets.

@julesfern
Created November 20, 2008 18:10
Show Gist options
  • Save julesfern/27127 to your computer and use it in GitHub Desktop.
Save julesfern/27127 to your computer and use it in GitHub Desktop.
def self.setup_router(scope)
scope.identify MerbAuthSliceFullfat::PasswordReset => :identifier do |identification|
identification.resources :sessions
identification.resources :password_resets, :keys=>[:identifier]
identification.resources :authenticating_clients
end
scope.default_routes
end
# FORM:
<%= form_for @authenticating_client, :action=>resource(:merb_auth_slice_fullfat, :authenticating_clients), :class=>"authenticating_client" do %>
<%= error_messages_for @authenticating_client %>
<dd><%= text_field :name %></dd>
# Results in namespacing:
<input type="text" id="merb_auth_slice_fullfat::authenticating_client_name" name="merb_auth_slice_fullfat::authenticating_client[name]" value="" class="text"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment