开发者

Changes to the code are not getting reflected in Rails 3.0

I have started a project using Rails 3.0. I am using devise for the authentication. Devise includes links to signin and forgot password in the sign up page. These links are loaded by means of a partial.I did not need these links, so I removed them and reloaded the page, but still these links remain. I tried clearing the cache and trying in a different browser(Safari). I added a new field(name) in the form but even that is not getting reflected.Could you please help me out. Thanks

/app/views/users/registrations/new.html.erb

<h2>Sign up</h2>
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
  <%= devise_error_mess开发者_Go百科ages! %>

  <p><%= f.label :name %><br />
  <%= f.text_field :name %></p>

  <p><%= f.label :email %><br />
  <%= f.text_field :email %></p>

  <p><%= f.label :password %><br />
  <%= f.password_field :password %></p>

  <p><%= f.label :password_confirmation %><br />
  <%= f.password_field :password_confirmation %></p>

  <p><%= f.submit "Sign up" %></p>
<% end %>


You need to run a command that creates local copies of your devise views and edit them. Have you done this?

See http://github.com/plataformatec/devise

and scroll down to the views section.

If you have done this then it's probably something to do with the order things are being loaded, as in it should pick up your local views first and is picking up the ones in the gem instead.


Maybe you need to restart the server? (That would be strange, but possible).

To be sure that your problem is really the problem with caching in the browser side, use a wget, or better: write a functional test.

Have you used caching in your controllers?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜