は、私は私のビューのための簡単なナビゲーションを持っている:シンプルナビゲーションRailsの3 - プライマリおよびサブナビゲーション問題
SimpleNavigation::Configuration.run do |navigation|
navigation.active_leaf_class = 'active'
navigation.items do |primary|
primary.item :profile,'Profile', edit_user_path do |profile|
profile.item :basic, 'Basic Information', edit_user_path
profile.item :additional, 'Addditional Details', additional_details_user_path
profile.dom_class = 'nav nav-list'
end
primary.item :notifications, 'Notifications', notification_preferences_user_path do |notification|
notification.item :notificatin_preference, 'Notification Preferences', additional_details_user_path
notification.dom_class = 'nav nav-list'
end
primary.dom_class = 'NAV NAV-薬' エンド エンド
追加します詳細は編集に関連しない別の方法ですので、そのリンクをクリックするとプライマリプロファイルのリンクが強調表示されません。どうすればいい?路線におけるMYユーザーリソースは、このようなものです:
resources :users do
member do
get :network
put :peer_tagged_expertise_list
get :qr_code
get :qr_code_image
get :about_you
get :timeline
get :network_tagcloud
get :user_tagcloud
get :settings
get :notification_preferences
get :additional_details
end
collection do
get :test
get :followers
end
resource :networks
end
あなたはブートストラップを使用しようとしていますか? –
@daemonsy:はいTwitter BootStrap –