search for: dashboard_path

Displaying 3 results from an estimated 3 matches for "dashboard_path".

2009 Sep 24
4
Action Controller ::MethodNotAllowed
...et is <% form_for @event, :url => events_path, :html => {:multipart => true, :id => "event_form"} do |f| -%> <%= render :partial => "form", :locals => {:f => f} %> <%= link_to image_tag("/images/btn-cancel.png", :border => 0), dashboard_path, :style => "float:left;" %> <%= link_to_function image_tag("/images/btn-publish.png", :border => 0), "publish_event($(this));", :style => "padding-right:20px;" %> <%= link_to_function image_tag("/images/btn-preview.png", :bord...
2012 Sep 20
4
access controller's object attributes in view page
Hi, I am new to ROR and learning it. In my controller I have an admins record and I am passing that admin object to the admin''s view page to get the name of the admin. But when I try to access the name it is showing error as "undefined method `name'' for :current_admin:Symbol".. Please help.. Please find my code below Sessions Controller def create
2011 Oct 05
0
Optional Dynamic Prepended Route via scope
...he organization to each route within that scope. Following the Rails guides, I attempted to use: default_url_options() { :organization => current_organization.name } end Which generated URLs in the way desired, e.g. /Organization1/system/ However, the URLs generated (via _path() calls, e.g. dashboard_path()) include the extra paramter ?organization=Organization1 which is not the behavior desired for this application. My question then is - is it possible to have the organization set and included for only those routes that declare a scope of /:organization. -- You received this message because you...