0

我有一个基于SAAS此处托管的条带应用程序的 rails 应用程序:

http://railsapps.github.com/rails-recurly-subscription-saas/

我为此添加了 twitter 引导程序,并且我的路径不再创建链接。

例如我的路由文件有:

resources :users

但是没有 users_path 在我的 erb 文件中创建指向该位置的链接

<%= link_to 'Admin', users_path %>

我可以提供任何想法或其他信息吗?

耙路线:

E:\Sites>rake routes  
            stripe_event        /stripe                        StripeEvent::Engine  
            content_gold GET    /content/gold(.:format)        content#gold  
          content_silver GET    /content/silver(.:format)      content#silver  
        content_platinum GET    /content/platinum(.:format)    content#platinum  
                    root        /                              home#index  
                    root        /                              home#index  
        new_user_session GET    /users/sign_in(.:format)       devise/sessions#new  
            user_session POST   /users/sign_in(.:format)       devise/sessions#create  
    destroy_user_session DELETE /users/sign_out(.:format)      devise/sessions#destroy  
           user_password POST   /users/password(.:format)      devise/passwords#create  
       new_user_password GET    /users/password/new(.:format)  devise/passwords#new  
      edit_user_password GET    /users/password/edit(.:format) devise/passwords#edit  
                         PUT    /users/password(.:format)      devise/passwords#update  
cancel_user_registration GET    /users/cancel(.:format)        registrations#cancel  
       user_registration POST   /users(.:format)               registrations#create  
   new_user_registration GET    /users/sign_up(.:format)       registrations#new  
  edit_user_registration GET    /users/edit(.:format)          registrations#edit  
                         PUT    /users(.:format)               registrations#update  
                         DELETE /users(.:format)               registrations#destroy  
             update_plan PUT    /update_plan(.:format)         registrations#update_plan  
             update_card PUT    /update_card(.:format)         registrations#update_card  
                   users GET    /users(.:format)               users#index  
                         POST   /users(.:format)               users#create  
                new_user GET    /users/new(.:format)           users#new  
               edit_user GET    /users/:id/edit(.:format)      users#edit  
                    user GET    /users/:id(.:format)           users#show  
                         PUT    /users/:id(.:format)           users#update  
                         DELETE /users/:id(.:format)           users#destroy  
4

1 回答 1

0

所以这似乎是由于当我从 wrapbootstrap 模板添加资产/图像目录时对图像的错误引用引起的。

我将此行添加到 config.assets.enabled=true 下的 application.rb 文件中

config.assets.paths << Rails.root.join("app", "images")

为了让我的图像在此之后显示,我必须将它们更改为 rails 格式,所以 background: img(..) 变成了

background: image-url('images/social_icons.png')
于 2013-04-02T16:34:29.413 回答