Why I get this error in haml: syntax error, unexpected keyword_ensure, expecting $end?

Up vote 0 down vote favorite share g+ share fb share tw.

Can some one please explain why I get this error: app/views/students/registrations/new.html. Haml:28: syntax error, unexpected keyword_ensure, expecting $end Extracted source (around line #28): 25: = render :partial => "devise/shared/links" Here is the form: %h2 Sign up = form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| = devise_error_messages! %div = f.

Label :email %br/ = f. Email_field :email %div = f. Label :password %br/ = f.

Password_field :password %div = f. Label :password_confirmation %br/ = f. Password_field :password_confirmation %p = f.

Label 'country', 'Country' %span (displayed in your articles / comments) = f. Select :country_id, @countries %div= f. Submit "Sign up" = render :partial => "devise/shared/links" ruby-on-rails-3 ruby-on-rails-3.1 haml link|improve this question asked Jan 12 at 20:29Samir Sabri37928 71% accept rate.

I'm guessing it has something to do with = f. Select :country_id, @countries ..Can you show us your controller code for the registrations#new action, please? Also, the resource does have all of these model attributes, correct?

– iWasRobbed Jan 12 at 22:47.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions