Giter Club home page Giter Club logo

haml-rails's People

Contributors

amatsuda avatar apux avatar colindean avatar cschramm avatar essh avatar fauxparse avatar hamptonmakes avatar hanachin avatar indirect avatar jparker avatar juanitofatas avatar ksouthworth avatar mfung avatar mikdiet avatar mikong avatar neersighted avatar nicolasleger avatar okuramasafumi avatar olivierlacan avatar olleolleolle avatar petergoldstein avatar radar avatar rrooding avatar snoozer05 avatar stewartmckee avatar syguer avatar tagliala avatar tricknotes avatar yosefbennywidyo avatar zmbc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

haml-rails's Issues

Erb to Haml conversion fails with spaces in the path

Running rails generate haml:application_layout convert fails if there is a space in any element of the path, e.g. Users/me/my directory/my_project. An error is displayed during the process, but then the success message is also displayed. Removing the space from the path and running the command again results in success.

%p tag does not work as expected / Chrome

I am using this markup in my rails view

%p
  %h2 Unser Bier
  %strong Qualität und Geschmack

this gets compiled to:

<p></p>
<h2>Unser Bier</h2>
<strong>Qualität und Geschmack</strong>

Few things noted:

  • This only affects my Inspector in Chrome (V 48.0.2564.116)
  • When checking the source of my view, it seems to be correctly compiled
  • However, the output and what I actually see is wrong
  • Same problem in Safari and Firefox

Gemfile.lock

haml-rails (0.9.0)
      actionpack (>= 4.0.1)
      activesupport (>= 4.0.1)
      haml (>= 4.0.6, < 5.0)
      html2haml (>= 1.0.1)
      railties (>= 4.0.1)

Defaulting to HTML5 causes issues when generating XML

lib/haml-rails.rb:13 sets the format to html5 which prevents XML tags from closing. Before usign html-haml I was setting this as an config/initializers/ using:

Haml::Template.options.update \
  attr_wrapper: "'",
  format:       :xhtml, # HTML 5 wrecks RSS/ATOM
  preserve:     [ 'textarea', 'pre' ],
  autoclose:
    %w[ meta img link br hr input area param col base ] +
    %w[ media:content enclosure media:thumbnail atom:link itunes:category ]

Obviously I've wrapped it in a config.config_initialize but this might throw off other users if they are also using HAML for XML / RSS / ATOM files, or at least be clearly documented.

0.1 compatibility issue with Rails 4.0.0.beta

Maybe this is a known issue (but I could not find it in the Issues list ...)

$ bundle exec rake --trace environment
rake aborted!
undefined method `generators' for #<Rails::Railtie::Configuration:0xa1ba0d0>
/home/peterv/b/github/tenderlove/rails/railties/lib/rails/railtie/configuration.rb:85:in `method_missing'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@instance_reader/gems/haml-rails-0.1/lib/haml-rails.rb:4:in `<class:Railtie>'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@instance_reader/gems/haml-rails-0.1/lib/haml-rails.rb:3:in `<module:Rails>'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@instance_reader/gems/haml-rails-0.1/lib/haml-rails.rb:2:in `<module:Haml>'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@instance_reader/gems/haml-rails-0.1/lib/haml-rails.rb:1:in `<top (required)>'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
/home/peterv/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
...

$ bundle exec rails --version
Rails 4.0.0.beta

$ cat Gemfile


# Gems used only for assets and not required
# in production environments by default.
source 'http://rubygems.org'

gem 'rails',     :path => '~/b/github/tenderlove/rails'  #203962d89...
gem 'journey',   :git => 'https://github.com/rails/journey.git'
gem 'arel',      :git => 'https://github.com/rails/arel.git'

gem 'pg' # Ubuntu : libpq-dev
gem 'sqlite3'
gem 'passenger'

gem 'jquery-rails'
gem 'therubyracer'
gem 'bcrypt-ruby', '>= 3.0.0'
gem 'haml-rails'
gem 'nokogiri'

gem 'uuidtools', '>= 2.1.2'

gem 'devise', '~> 1.5.3'
gem 'cucumber'
gem 'pickle'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   :git => 'https://github.com/rails/sass-rails.git'
  gem 'coffee-rails', :git => 'https://github.com/rails/coffee-rails.git'
  gem 'uglifier', '>= 1.0.3'
  gem 'bootstrap-sass'
end

# tools for testing
group :development, :test do
  gem 'rspec-rails'
end

group :test do
  gem 'factory_girl_rails'
  gem 'capybara'
  gem 'guard-rspec'
  gem 'guard-spork'
  gem 'spork', '~> 0.9.0.rc'

# on Mac os X
  gem 'rb-fsevent' if RUBY_PLATFORM.include?("x86_64-darwin")
  gem 'ruby_gntp' if RUBY_PLATFORM.include?("x86_64-darwin")

# on Linux
  gem 'rb-inotify' unless RUBY_PLATFORM.include?("x86_64-darwin")
  gem 'libnotify' unless RUBY_PLATFORM.include?("x86_64-darwin")
end




Broken template after erb2haml

Hi! I just ran rake haml:erb2haml for all .erb files. There was three erb files in one directory:

login
|- index.html.erb
|- login.html.erb
|- logout.html.erb

CLI asked me about what files I wanna convert.
Now, I have the same files, but in haml-format. But, one of those (login.html.haml) looks like this:

\%h1 Login#index
\%p Find me in app/views/login/index.html.erb

I don't know why these lines prefixed by backslash. Is it bug?

wrong indentation while using local gem, but works with original gem

I want to rewrite the gem haml-rails

But it fails after I cloned it from https://github.com/indirect/haml-rails and didn't change anything.

The generated index file's indentation is wrong,

But if I disable the my local haml-rails gem,use the original instead it works.

Very strange bug.

cgi_testing_seeds/index.html.haml

%table
  %thead
    %tr
        %th Name
        %th Description
        %th Seeds
        %th
      %th
      %th

Gemfile

gem "haml-rails", :path => "/Users/hsu-wei-cheng/sandbox/haml-rails"
#gem "haml-rails"

lib/generators/haml/scaffold/templates/index.html.haml

%table
  %thead
    %tr
  <% for attribute in attributes -%>
      %th <%= attribute.human_name %>
  <% end -%>
      %th
      %th
      %th

What's wrong with: *(SASS): =round-corner(!position, !amount = !default_rounded_amount)

What's wrong with: *(SASS): =round-corner(!position, !amount = !default_rounded_amount)

This code used to work yesterday, today it doesn't... is there something in the gem update that changed sytax rules? Or am I missing something about how to do things properly?

!default_rounded_amount ||= 5px

// Round corner at position by amount.

// values for position: "top-left", "top-right", "bottom-left", "bottom-right"

=round-corner(!position, !amount = !default_rounded_amount)

border-#{!position}-radius= !amount

-moz-border-#{!position}-radius= !amount

-webkit-border-#{!position}-radius= !amount

Ignores js files

It doesn't seem that assets under app/assets/javascripts/ are compiled by haml.

There's a gem angular-rails-templates that takes files like app/assets/javascript/templates/settings.html and converts them to JS files that insert HTML template into angular's template cache. My understanding is that we should be able to name files template.html.haml, which would be processed by HAML first to generate HTML, then by angular-rails-templates to generate JS. This doesn't seem to work and the behaviour is very odd. Please see pitr/angular-rails-templates#18 for more info

deprecation warning on rails 3.1

DEPRECATION WARNING: config.generators in Rails::Railtie is deprecated. Please use config.app_generators instead. (called from class:Railtie at /Users/user/.rvm/gems/ruby-1.9.2-head/bundler/gems/haml-rails-1c43e448e59c/lib/haml-rails.rb:7)

haml-rails forces cache_template_loading = false in development

While this is almost always the right choice as a default, it ignores any explicitly chosen configuration by the developer (e.g. if trying to check how something in the application is working when templates and digests are cached). Could we consider allowing other values if explicitly set in the development configuration?

Blows up with Rails 3 rc2.

Same story as the jquery-rails gem. Works with Rails 3 rc but not Rails 3 rc2.

Here's the error when manually running the server after adding the haml-rails gem to Gemfile:

DEPRECATION WARNING: RAILS_ROOT is deprecated. Please use Rails.root.to_s. (called from method_missing at /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/deprecation.rb:26)
Exiting
(eval):1:in block in initialize': uninitialized constant Rails::DeprecatedConstant::Rails (NameError) from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/deprecation.rb:29:incall'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/deprecation.rb:29:in method_missing' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/haml-3.0.17/lib/haml/util.rb:276:inrails_root'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/haml-3.0.17/lib/sass/plugin/rails.rb:5:in <top (required)>' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/haml-3.0.17/lib/sass/plugin.rb:268:in<top (required)>'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/haml-3.0.17/lib/haml/railtie.rb:14:in block in <top (required)>' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0.rc2/lib/active_support/lazy_load_hooks.rb:36:ininstance_eval'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0.rc2/lib/active_support/lazy_load_hooks.rb:36:in execute_hook' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0.rc2/lib/active_support/lazy_load_hooks.rb:43:inblock in run_load_hooks'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0.rc2/lib/active_support/lazy_load_hooks.rb:42:in each' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0.rc2/lib/active_support/lazy_load_hooks.rb:42:inrun_load_hooks'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/application/bootstrap.rb:72:in block in <module:Bootstrap>' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/initializable.rb:25:ininstance_exec'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/initializable.rb:25:in run' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/initializable.rb:50:inblock in run_initializers'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/initializable.rb:49:in each' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/initializable.rb:49:inrun_initializers'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/application.rb:134:in initialize!' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/application.rb:77:inmethod_missing'
from /Users/i0n/Sites/devasclub/config/environment.rb:5:in <top (required)>' from /Users/i0n/Sites/devasclub/config.ru:3:inblock in

'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/builder.rb:46:in instance_eval' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/builder.rb:46:ininitialize'
from /Users/i0n/Sites/devasclub/config.ru:1:in new' from /Users/i0n/Sites/devasclub/config.ru:1:in'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/builder.rb:35:in eval' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/builder.rb:35:inparse_file'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/server.rb:162:in app' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/server.rb:248:inwrapped_app'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/server.rb:213:in start' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/commands/server.rb:65:instart'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/commands.rb:30:in block in <top (required)>' from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/commands.rb:27:intap'
from /Users/i0n/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0.rc2/lib/rails/commands.rb:27:in <top (required)>' from script/rails:9:inrequire'
from script/rails:9:in `'

Odd loading behavior in Rails engines.

Create a new, gemified Rails (3.2.8) engine:

$ rails plugin new example --full --mountable

$ cd example

Add haml-rails (0.3.4) to the gemspec file (since this is a gemified Rails engine, and the dummy application uses the engine's Gemfile which has a gemspec directive):

# Edit example.gemspec...

$ grep haml example.gemspec
  s.add_dependency "haml-rails"

$ bundle # Probably not necessary.

At this point, Haml doesn't appear to get loaded in the test dummy application for templating:

$ (cd test/dummy; rails generate scaffold)
[snip]
  -e, [--template-engine=NAME]  # Template engine to be invoked
                                # Default: erb
[snip]

However, if you then add haml-rails to the Gemfile, things appear to work:

# Edit Gemfile...

$ grep haml Gemfile
gem 'haml-rails'

$ bundle

$(cd test/dummy; rails generate scaffold)
[snip]
  -e, [--template-engine=NAME]  # Template engine to be invoked
                                # Default: haml
[snip]

license?

I couldn't find license info in the source or in the readme. Do you mind adding it? Thanks!

Is it supported for rails 5?

We're using haml-rails as one of the dependencies on our rails4 application so first thing first -- a very big thanks to you for sharing this beautiful gem. Since we're considering an upgrade to rails5 in the near term, I wonder if this gem would be supported for rails 5?

Haml not used as default generator

I just tried on a newly created rails3 project with haml-rails and the default generator for controllers is still erb.

rails new rails-test

Using the following gems:
gem 'acts-as-list'
gem 'aws-s3', :require => 'aws/s3'
gem 'carmen'
gem 'cells'
gem 'compass'
gem 'delayed_paperclip', :require => ['paperclip', 'resque']
gem 'devise'
gem 'formtastic'
gem 'friendly_id'
gem 'haml'
gem 'haml_formtastic_scaffold', :require => ['haml', 'formtastic']
gem 'haml-rails', :require => 'haml'
gem 'hpricot'
gem 'html5-boilerplate', :require => 'compass'
gem 'i18n'
gem 'i18n_routing', :require => 'i18n'
gem 'inherited_resources'
gem 'jquery-rails'
gem 'money'
gem 'paper_trail'
gem 'paperclip', :require => 'aws/s3'
gem 'postmark-rails'
gem 'rails-generators'
gem 'responders'
gem 'resque'
gem 'ruby_parser'
gem 'simple-navigation'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'state_machine'
gem 'typus', :git => 'git://github.com/fesplugas/typus.git'
gem 'will_paginate'

Then running bundle install.

rails g controller home index

creates app/views/home/index/index.html.erb

with -e haml modifier, it works as expected

rails g controller home index -e haml

Templates should not require the erb extension when they are overridden locally

The path searched looks like below and according to josevalim the "erb" extension should not be required. See comment here

Could not find "_form.html.haml.erb" in any of your source paths. Your current  source paths are: 
/Users/andersjanmyr/Projects/bob/lib/templates/haml/scaffold
/Users/andersjanmyr/.rvm/gems/ruby-1.9.2-p0/gems/haml-rails-0.2/lib/generators/haml/scaffold/templates
/Users/andersjanmyr/Projects/bob/lib/templates/erb/scaffold

Haml-rails does not include a mailer generator

When executing

rails g mailer test_mailer

i get the following output:

$ rails g mailer test_mailer
  create  app/mailers/test_mailer.rb
   error  haml [not found]
  invoke  rspec
  create    spec/mailers/test_mailer_spec.rb

In the source i see there are no generators for mail, not sure how this should be fixed?

Command line to replace Rails default application.html.erb with application.html.haml

I think it would be pretty awesome if haml-rails had a command that looks like

$ rails g haml-rails:application-layout

And as a result, it removes the old application.html.erb with application.html.haml.

I think this is something almost every haml-rails users do with their Rails app manually already. It would be a frequently used command.

Excess spaces while rendering multiline string

Hello, today I end up with strange issue in Rails 5:

Here is how a simple text.html.erb file looks like:
<textarea><%= "a\nb\nc" %></textarea>
And here is what it produce:
enter image description here enter image description here

I'm talking about these leading spaces before second and third strings.

In my code I have a form with textarea:

.form
  =form_for article do |f|
    .form-group
      =field_label f, :text, true
      =f.text_area :text, class: %w(form-control), rows: 20, placeholder: t('placeholder.article_text')

And the same issue happens there on Edit action

I found out that the reason is haml-rails gem in Gemfile. Without it <textarea><%= "a\nb\nc" %></textarea> forks fine, but with it, it adds extra spaces.

Error generating view with Rails 4.1

Using haml-rails (0.5.3), railties (4.1.0.rc1). When generating scaffold getting '`filename_with_extensions': wrong number of arguments (1 for 2) (ArgumentError)'.

To reproduce:

rails generate scaffold business name:string address:text subdomain:string time_zone:string

Cause:
Haml:: Generators::ScaffoldGenerator pass only one argument to the filename_with_extensions method.

The Railties Erb::Generators::Base filename_with_extensions method requires two arguments.

def filename_with_extensions(name, format)

Fix: when calling this method pass 2nd argument set to nil. Or have the Railties guys default second argument to nil.

Rails 4 View Template Cache Digestor Compatibility

Rails 4 pulls in cache digesting for fragment caching, which is fantastic. However, by default, only ERB templates are registered to be considered and parsed for cache key calculation.

As I would assume Haml support for cache digests wont get added to Rails, do you think it's appropriate to add the initializer code required to get that working into your gem?

@nzaillian suggested this to the haml gem in issue 708, for reference.

The following works for me in Rails 4 (a port of the code required to get this working in rails 3.x with the cache_digests gem and haml templates):

# config/initializers/cache_digests.rb

# Tell cache digests to parse haml view templates
# when calculating cache keys for view fragments
# as Rails only supports ERB by default

ActiveSupport.on_load(:action_view) do
  ActiveSupport.on_load(:after_initialize) do
    require 'action_view/dependency_tracker'
    ActionView::DependencyTracker.register_tracker :haml, ActionView::DependencyTracker::ERBTracker

    if Rails.env.development?
      # recalculate cache digest keys for each request in development

      # using blackhole cache until Rails path is released that allows us to
      # simply set `config.cache_template_loading` false in development.rb
      # https://github.com/rails/rails/pull/10791
      class BlackHole < Hash
        def []=(*); end
      end
      module ::ActionView
        class Digestor
          @@cache = BlackHole.new
        end
      end
    end
  end
end

Thoughts?

undefined local variable or method `active_admin_application'

I've installed ActiveAdmin in my Rails 4 app (which is using the rails-api gem). Now I know that ActiveAdmin requires a whole lot of stuff that rails-api removes, but I've added back what I believe ActiveAdmin requires.

When heading to http://localhost:3000/admin/login I see the error:

Showing /usr/local/rvm/gems/ruby-2.0.0-p247/bundler/gems/active_admin-590e6d2c30ac/app/views/active_admin/devise/sessions/new.html.erb where line #4 raised:

undefined local variable or method `active_admin_application' for #<#<Class:0x007fce021144a0>:0x007fce0211f4e0>

Where line 4 is:

<%= title "#{render_or_call_method_or_proc_on(self, active_admin_application.site_title)} #{t('active_admin.devise.login.title')}" %>

Thanks for any help you can provide. FYI> It works just fine if I create a test Rails app without the rails-api gem.

Broken Tests, Bad Filepaths

In making a patch to fix slim-rails I found that it had two big bugs in the test_helper.rb file (most API changes), and since the tests are a direct copy it's likely the problem is also in haml-rails.

In addition many of the File.join statements have '/' in their strings, which is silly and broken, and many of the tests don't even use File.join.

conflict of constant ::Rails

Haml refers toplevel constant Rails without :: in haml/util.rb to define rails_root and rails_env.

Unfortunately haml-rails defines a constant named Haml::Rails and this causes an error:
haml-3.0.17/lib/haml/util.rb:273:in rails_root': undefined methodroot' for Haml::Rails:Module (NoMethodError)

Rails 4 incompatability

On both ruby 1.9.3 and 2.0.0:

# Gemfile
gem 'rails', '4.0.0.beta1'
gem "haml-rails"
$ rails s
rails s
=> Booting WEBrick
=> Rails 4.0.0.beta1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-4.0.0.beta1/lib/action_dispatch/middleware/stack.rb:107:in `delete': can't modify frozen Array (RuntimeError)
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-4.0.0.beta1/lib/action_dispatch/middleware/stack.rb:107:in `delete'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/sass-rails-4.0.0.beta1/lib/sass/rails/railtie.rb:33:in `block in <class:Railtie>'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.beta1/lib/active_support/lazy_load_hooks.rb:36:in `call'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.beta1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.beta1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.beta1/lib/active_support/lazy_load_hooks.rb:44:in `each'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.beta1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.beta1/lib/rails/application/finisher.rb:62:in `block in <module:Finisher>'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.beta1/lib/rails/initializable.rb:30:in `instance_exec'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.beta1/lib/rails/initializable.rb:30:in `run'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.beta1/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /Users/peter/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
    from /Users/peter/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
    from /Users/peter/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
    from /Users/peter/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
    from /Users/peter/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each'
    from /Users/peter/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
    from /Users/peter/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.beta1/lib/rails/initializable.rb:54:in `run_initializers'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.beta1/lib/rails/application.rb:213:in `initialize!'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.beta1/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/peter/Rails/lock8/config/environment.rb:5:in `<top (required)>'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.beta1/lib/active_support/dependencies.rb:228:in `require'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.beta1/lib/active_support/dependencies.rb:228:in `block in require'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.beta1/lib/active_support/dependencies.rb:213:in `load_dependency'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.beta1/lib/active_support/dependencies.rb:228:in `require'
    from /Users/peter/Rails/lock8/config.ru:3:in `block in <main>'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
    from /Users/peter/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
    from /Users/peter/Rails/lock8/config.ru:in `new'
    from /Users/peter/Rails/lock8/config.ru:in `<main>'

Noted that in my Gemfile.lock, haml 3.1.7 is being used, not haml 4. Could this be the issue? It would let me force it and see.

How to use haml-rails with Rails 3 and haml 4

Any reason why you require actionpack >3.1?
I can't install it because of this with rails 3, is there any technical reason? I would like to use haml4 though your gem.
I'm stuck to 0.1 and requiring haml manually...

Doesn't generate any views

While generating controller or scaffolding controller haml-rails creates a new directory for views, however its empty:

C:\dev\Ruby193\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/dev/uamovies/railmovies/script/rails generate controller admin/awards -s
      create  app/controllers/admin/awards_controller.rb
      invoke  haml
      create    app/views/admin/awards
      invoke  test_unit
   identical    test/functional/admin/awards_controller_test.rb
      invoke  helper
      create    app/helpers/admin/awards_helper.rb
      invoke    test_unit
   identical      test/unit/helpers/admin/awards_helper_test.rb
      invoke  assets
      invoke    coffee
   identical      app/assets/javascripts/admin/awards.js.coffee
      invoke    scss
   identical      app/assets/stylesheets/admin/awards.css.scss

Process finished with exit code 0

ActionMailer generator uses incorrect path

How haml-rails works now:

$ bin/rails g mailer alerter bug
      create  app/mailers/alerter_mailer.rb
      invoke  haml
      create    app/views/alerter  <-- WRONG
      create    app/views/layouts/mailer.text.haml
      create    app/views/layouts/mailer.html.haml
      create    app/views/alerter/bug.text.haml  <-- WRONG
      create    app/views/alerter/bug.html.haml  <-- WRONG
      invoke  test_unit
      create    test/mailers/alerter_mailer_test.rb
      create    test/mailers/previews/alerter_mailer_preview.rb

Expected behavior:

$ bin/rails g mailer alerter bug
      create  app/mailers/alerter_mailer.rb
      invoke  haml
      create    app/views/alerter_mailer  <-- correct
      create    app/views/layouts/mailer.text.haml
      create    app/views/layouts/mailer.html.haml
      create    app/views/alerter_mailer/bug.text.haml  <-- correct
      create    app/views/alerter_mailer/bug.html.haml  <-- correct
      invoke  test_unit
      create    test/mailers/alerter_mailer_test.rb
      create    test/mailers/previews/alerter_mailer_preview.rb

This causes issues because you have to move the generated files into the correct directory or ActionMailer thinks the templates don't exist. The ERB generator works correctly.

Installation problem on rails edge

Bundler could not find compatible versions for gem "railties":
In Gemfile:
haml-rails depends on
railties (~> 3.0.0)

rails depends on
  railties (3.1.0.beta)

Don't exist task haml:erb2haml

So, I don't have haml:erb2haml task in rake task list.

➜ ~/Projects/awedd (master) rake haml:erb2haml
rake aborted!
Don't know how to build task 'haml:erb2haml'

(See full trace by running task with --trace)

Gem was installed with bundler: I wrote gem "haml-rails" to Gemfile and ran bundle.

Rails 4.2.0
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]

Gems included by the bundle:
  * actionmailer (4.2.0)
  * actionpack (4.2.0)
  * actionview (4.2.0)
  * activejob (4.2.0)
  * activemodel (4.2.0)
  * activerecord (4.2.0)
  * activesupport (4.2.0)
  * arel (6.0.0)
  * bcrypt (3.1.9)
  * binding_of_caller (0.7.2)
  * builder (3.2.2)
  * bundler (1.7.12)
  * byebug (3.5.1)
  * capistrano (3.3.5)
  * capistrano-bower (1.0.0)
  * capistrano-bundler (1.1.4)
  * capistrano-rails (1.1.2)
  * capistrano-stats (1.1.1)
  * colorize (0.7.5)
  * columnize (0.9.0)
  * debug_inspector (0.0.2)
  * debugger-linecache (1.2.0)
  * docile (1.1.5)
  * erubis (2.7.0)
  * execjs (2.2.2)
  * fabrication (2.12.2)
  * faker (1.4.3)
  * globalid (0.3.0)
  * haml (4.0.6)
  * haml-rails (0.8.0)
  * hike (1.2.3)
  * html2haml (2.0.0)
  * i18n (0.7.0)
  * jbuilder (2.2.6)
  * json (1.8.2)
  * kgio (2.9.3)
  * loofah (2.0.1)
  * mail (2.6.3)
  * mime-types (2.4.3)
  * mini_portile (0.6.2)
  * minitest (5.5.1)
  * multi_json (1.10.1)
  * net-scp (1.2.1)
  * net-ssh (2.9.2)
  * nokogiri (1.6.5)
  * rack (1.6.0)
  * rack-test (0.6.3)
  * rails (4.2.0)
  * rails-deprecated_sanitizer (1.0.3)
  * rails-dom-testing (1.0.5)
  * rails-html-sanitizer (1.0.1)
  * railties (4.2.0)
  * raindrops (0.13.0)
  * rake (10.4.2)
  * rdoc (4.2.0)
  * ruby_parser (3.6.4)
  * sass (3.4.10)
  * sass-rails (5.0.1)
  * sdoc (0.4.1)
  * sexp_processor (4.4.5)
  * simplecov (0.9.1)
  * simplecov-html (0.8.0)
  * slop (3.6.0)
  * spring (1.2.0)
  * sprockets (2.12.3)
  * sprockets-rails (2.2.2)
  * sqlite3 (1.3.10)
  * sshkit (1.6.1)
  * thor (0.19.1)
  * thread_safe (0.3.4)
  * tilt (1.4.1)
  * tzinfo (1.2.2)
  * uglifier (2.7.0)
  * unicorn (4.8.3)
  * web-console (2.0.0)

Haml 3.2

Haml has been updated to 3.2, and it would be nice if haml-rails updated it's dependencies.

Unable to convert an application layout of an engine

Hey guys,
While the rails g haml:application_layout works fine in nornal Rails app, it does not when I run it from an engine:

~/railsengine$ rails g haml:application_layout
~/railsengine/vendor/bundle/gems/haml-rails-0.9.0/lib/rails/generators/haml/application_layout/application_layout_generator.rb:11:in `convert': undefined method `join' for nil:NilClass (NoMethodError)

I run it correctly without errors under ~/railsengine/spec/dummy:

~/railsengine/spec/dummy$ rails g haml:application_layout
Success! app/views/layouts/application.html.haml is created.
Please remove the erb file: app/views/layouts/application.html.erb

Is haml-rails designed to not to run in Rails engines?

Thanks a bunch.

uninitialized constant Haml::Filters::SassImporter

Hello,
I've stumbled across this issue when upgrading my app to Rails 4.2.

It can be reproduced with a new rails project.

  • add following gem dependencies:
gem 'haml-rails', '~> 0.5.3'
gem 'compass-rails', '~> 2.0.3'
  • rename application.css in application.css.scss and add @import 'compass';
  • add the following config in application.rb:
    config.assets.enabled = true (important part!)
  • generate a model, a controller and view. In the view add inline scss:
:scss
  h1 {
    color: yellow;
  }

When trying to access the view, the following error will be raised:

ActionView::Template::Error (uninitialized constant Haml::Filters::SassImporter):
  compass-rails (2.0.3) lib/compass-rails/patches/sass_importer.rb:58:in `sass_importer_artiy'
  compass-rails (2.0.3) lib/compass-rails/patches/sass_importer.rb:63:in `sass_importer'
  compass-rails (2.0.3) lib/compass-rails/patches/sass_importer.rb:18:in `block in evaluate'
  compass-rails (2.0.3) lib/compass-rails/patches/sass_importer.rb:18:in `map'
  compass-rails (2.0.3) lib/compass-rails/patches/sass_importer.rb:18:in `evaluate'
  tilt (1.4.1) lib/tilt/template.rb:103:in `render'
  haml (4.0.6) lib/haml/sass_rails_filter.rb:8:in `render'
  (eval):5:in `render_with_options'
  haml (4.0.6) lib/haml/filters.rb:184:in `block in compile'
  haml (4.0.6) lib/haml/filters.rb:162:in `instance_eval'
  haml (4.0.6) lib/haml/filters.rb:162:in `compile'
  haml (4.0.6) lib/haml/filters.rb:141:in `internal_compile'
  haml (4.0.6) lib/haml/compiler.rb:273:in `compile_filter'
  haml (4.0.6) lib/haml/compiler.rb:20:in `compile'
  haml (4.0.6) lib/haml/compiler.rb:22:in `block (2 levels) in compile'
  haml (4.0.6) lib/haml/compiler.rb:22:in `each'
  haml (4.0.6) lib/haml/compiler.rb:22:in `block in compile'
  haml (4.0.6) lib/haml/compiler.rb:95:in `compile_root'
  haml (4.0.6) lib/haml/compiler.rb:22:in `compile'
  haml (4.0.6) lib/haml/engine.rb:66:in `initialize'
  haml (4.0.6) lib/haml/template/plugin.rb:25:in `new'
  haml (4.0.6) lib/haml/template/plugin.rb:25:in `compile'
  haml (4.0.6) lib/haml/template/plugin.rb:30:in `call'

As a workaround, I prevented the load of sass_rails_filter by removing config.assets.enabled = true in application.rb (it's supposed to be by default now anyway). If I understand correctly it only prevents me from using rails helpers in inline sass.

As a sidenote, the test app.config.assets.enabled in haml-4.0.6/lib/haml/railtie.rb seems buggy since app.config.assets.enabled is nil for a new rails app even though asset pipeline is enabled by default...

Please tell me if you need any more information.
You might also consider that the issue belongs to compass-rails... Let me know!

Rails shows "500 page" but not "debug page" with syntax error(with non-ASCII characters)

I have a HAML file which contains some non-ASCII characters, like below:

    -# coding: utf-8

    = select "set", "name", ["社團朋友",1], ["國文作業",2], ["Create New Set",0]]-

When I tried to access this page, Rails gave me a "500 Internal Server Error" page:

500 Internal Server Error
If you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong.

No extracted source, no stack trace. Just a static page. I think that Rails should return the debug page anyhow in development mode, so isn't it a bug?

My development.log:

Started GET "/main" for 127.0.0.1 at 2011-10-27 00:53:14 +0800
  Processing by MainController#index as HTML
  �[1m�[35mUser Load (0.3ms)�[0m  SELECT "users".* FROM "users" WHERE "users"."facebook_uid" = 100000353465634 LIMIT 1
  �[1m�[36mSchedule Load (0.3ms)�[0m  �[1mSELECT "schedules".* FROM "schedules" WHERE "schedules"."user_id" IN (1)�[0m
  �[1m�[35mDay Load (0.3ms)�[0m  SELECT "days".* FROM "days" WHERE "days"."schedule_id" IN (1)
  �[1m�[36mLesson Load (0.6ms)�[0m  �[1mSELECT "lessons".* FROM "lessons" WHERE "lessons"."day_id" IN (1, 2, 3, 4, 5, 6)�[0m
Rendered schedules/_show_friends.html.haml (2.5ms)
  �[1m�[35mUser Load (0.3ms)�[0m  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
ERROR: compiling _app_views_shared__user_info_html_haml___252064692817660966_51225460 RAISED /home/raincole/rails_projects/ntu_scheduler/app/views/shared/_user_info.html.haml:8: syntax error, unexpected ']', expecting ')'
...ä½æ¥­",2], ["Create New Set",0]]-#, {:include_blank => false,...
...                                 ^
/home/raincole/rails_projects/ntu_scheduler/app/views/shared/_user_info.html.haml:9: syntax error, unexpected tCONSTANT, expecting ')'
...n", 0, false); #s= link_to "Add", "#", :class => "btn succes...
...                               ^
/home/raincole/rails_projects/ntu_scheduler/app/views/shared/_user_info.html.haml:10: syntax error, unexpected keyword_ensure, expecting ')'
...:Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer....
...                               ^
/home/raincole/rails_projects/ntu_scheduler/app/views/shared/_user_info.html.haml:10: syntax error, unexpected keyword_end, expecting ')'
...buffer = @haml_buffer.upper;end;
...                               ^
/home/raincole/rails_projects/ntu_scheduler/app/views/shared/_user_info.html.haml:13: syntax error, unexpected keyword_end, expecting ')'
Function body:           def _app_views_shared__user_info_html_haml___252064692817660966_51225460(local_assigns, output_buffer)
            _old_virtual_path, @virtual_path = @virtual_path, "shared/_user_info";_old_output_buffer = @output_buffer;user = local_assigns[:user];user_info = local_assigns[:user_info];;begin;extend Haml::Helpers;_hamlout = @haml_buffer = Haml::Buffer.new(@haml_buffer, {:autoclose=>["meta", "img", "link", "br", "hr", "input", "area", "param", "col", "base"], :preserve=>["textarea", "pre", "code"], :attr_wrapper=>"'", :ugly=>false, :format=>:html5, :encoding=>"UTF-8", :escape_html=>true, :escape_attrs=>true});_erbout = _hamlout.buffer;__in_erb_template = true;;_hamlout.push_text("<div class='user_info span16'>\n  <h2>#{_hamlout.adjust_tabs(2); 




_hamlout.format_script_false_true_false_false_false_true_false(("#{Haml::Helpers.html_escape((user.name))}'s Schedule"
));}</h2>\n  <div class='fun'>\n    #{_hamlout.adjust_tabs(1); 
_hamlout.format_script_false_false_false_true_false_true_false(( select "set", "name", ["社åæå",1], ["åæä½æ¥­",2], ["Create New Set",0]]-#, {:include_blank => false, :prompt => 'Select a schedule set to add'}, {:id => 'add_to_set_select'}
));}\n", 0, false); #s= link_to "Add", "#", :class => "btn success small"
_hamlout.push_text("  </div>\n</div>\n", -2, false);::Haml::Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer.upper;end;
          ensure
            @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
          end
Backtrace: /home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:282:in `module_eval'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:282:in `compile'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:190:in `compile!'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:143:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:55:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:142:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:256:in `render_partial'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:228:in `block (2 levels) in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:227:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:219:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:41:in `render_partial'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:15:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/helpers/rendering_helper.rb:24:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers/action_view_mods.rb:11:in `block in render_with_haml'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers.rb:90:in `non_haml'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
/home/raincole/rails_projects/ntu_scheduler/app/views/schedules/_show.html.haml:6:in `_app_views_schedules__show_html_haml___1620517414953507623_51153340'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:144:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:55:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:142:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:256:in `render_partial'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:228:in `block (2 levels) in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:227:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:219:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:41:in `render_partial'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:15:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/helpers/rendering_helper.rb:24:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers/action_view_mods.rb:11:in `block in render_with_haml'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers.rb:90:in `non_haml'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
/home/raincole/rails_projects/ntu_scheduler/app/views/main/index.html.haml:16:in `_app_views_main_index_html_haml___2116693120409007081_51563880'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:144:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:55:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:142:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:38:in `render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:12:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:9:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:36:in `render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:17:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:120:in `_render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/streaming.rb:250:in `_render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:114:in `render_to_body'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/renderers.rb:30:in `render_to_body'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/compatibility.rb:43:in `render_to_body'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:99:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/rendering.rb:16:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/raincole/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activerecord-3.1.0/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:39:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/base.rb:167:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:425:in `_run__644114700063714152__process_action__3372272976403756574__callbacks'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/rescue.rb:17:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activerecord-3.1.0/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/base.rb:121:in `process'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:45:in `process'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal.rb:193:in `dispatch'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal.rb:236:in `block in action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:65:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:29:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `block in call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `block in recognize'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:82:in `optimized_each'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:531:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/etag.rb:23:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/conditionalget.rb:25:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/flash.rb:243:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/session/abstract/id.rb:195:in `context'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/session/abstract/id.rb:190:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/cookies.rb:326:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activerecord-3.1.0/lib/active_record/query_cache.rb:62:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/reloader.rb:68:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/sendfile.rb:101:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/railties-3.1.0/lib/rails/rack/logger.rb:13:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/methodoverride.rb:24:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/runtime.rb:17:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/lock.rb:15:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/static.rb:53:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/railties-3.1.0/lib/rails/engine.rb:455:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/railties-3.1.0/lib/rails/rack/content_length.rb:16:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/railties-3.1.0/lib/rails/rack/log_tailer.rb:14:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/handler/webrick.rb:59:in `service'
/home/raincole/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/home/raincole/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/home/raincole/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
Rendered shared/_user_info.html.haml (3.8ms)
Rendered schedules/_show.html.haml (8.1ms)
Rendered main/index.html.haml within layouts/application (12.9ms)
Completed 500 Internal Server Error in 1124ms

I'm using haml-rails 0.3.4, rails 3.1.0.

cannot load such file -- action_view/dependency_tracker after update to 0.5 (rails 3.2.15)

/Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in require': cannot load such file -- action_view/dependency_tracker (LoadError) from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:inblock in require'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:236:in load_dependency' from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:inrequire'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/haml-rails-0.5/lib/haml-rails.rb:35:in block (3 levels) in <class:Railtie>' from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/lazy_load_hooks.rb:36:ininstance_eval'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/lazy_load_hooks.rb:36:in execute_hook' from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/lazy_load_hooks.rb:43:inblock in run_load_hooks'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/lazy_load_hooks.rb:42:in each' from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/lazy_load_hooks.rb:42:inrun_load_hooks'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/application/finisher.rb:59:in block in <module:Finisher>' from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/initializable.rb:30:ininstance_exec'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/initializable.rb:30:in run' from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/initializable.rb:55:inblock in run_initializers'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/initializable.rb:54:in each' from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/initializable.rb:54:inrun_initializers'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/application.rb:136:in initialize!' from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/railtie/configurable.rb:30:inmethod_missing'
from /Users/atimofeev/Sites/CodeRed/rail/config/environment.rb:5:in <top (required)>' from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:inrequire'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in block in require' from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:236:inload_dependency'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in require' from /Users/atimofeev/Sites/CodeRed/rail/config.ru:3:inblock in

'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/rack-1.4.5/lib/rack/builder.rb:51:in instance_eval' from /Users/atimofeev/.rvm/gems/[email protected]/gems/rack-1.4.5/lib/rack/builder.rb:51:ininitialize'
from /Users/atimofeev/Sites/CodeRed/rail/config.ru:in new' from /Users/atimofeev/Sites/CodeRed/rail/config.ru:in'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/rack-1.4.5/lib/rack/builder.rb:40:in eval' from /Users/atimofeev/.rvm/gems/[email protected]/gems/rack-1.4.5/lib/rack/builder.rb:40:inparse_file'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/rack-1.4.5/lib/rack/server.rb:200:in app' from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/commands/server.rb:46:inapp'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/rack-1.4.5/lib/rack/server.rb:304:in wrapped_app' from /Users/atimofeev/.rvm/gems/[email protected]/gems/rack-1.4.5/lib/rack/server.rb:254:instart'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/commands/server.rb:70:in start' from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/commands.rb:55:inblock in <top (required)>'
from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/commands.rb:50:in tap' from /Users/atimofeev/.rvm/gems/[email protected]/gems/railties-3.2.15/lib/rails/commands.rb:50:in<top (required)>'
from script/rails:6:in require' from script/rails:6:in'

rake test ==> "unitialized constant Haml"

After installing Haml and haml-rails, when I try to run a test I get an "uninitialized constant Haml"

$ rake test
rake aborted!
uninitialized constant Haml
/home/lsiden/projects/myproject/rails/config/environment.rb:9:in `<top (required)>'

Did I miss something when I installed this gem or haml?

Converting specific file/folder

@indirect, What you think about ability for converting specific file or folder like this :

  haml2rails app/views/cats/_form.html.erb app/views/cats/_form.html.haml
  haml2rails --replace app/views/cats/_form.html.erb # do the same, but replace erb with haml
  haml2rails app/views/cats # convert the whole cats view folder

Unable to load generator

Bear with me, this is my first attempt at a solo Rails app.
I'm using Rails 3.0.3 on Ruby 1.9.2 with the following notable gems :

  • html5-boilerplate
  • rails3-generators
  • jquery-rails

As I attempt to generate controllers using this line :
rails generate controller Characters index show new

I receive this error :
[WARNING] Could not load generator "generators/haml/controller/controller_generator". Error: Haml is not missing constant Generators!.

Which results in this:
error haml [not found]
invoke test_unit
create test/functional/characters_controller_test.rb
invoke helper
create app/helpers/characters_helper.rb
invoke test_unit
create test/unit/helpers/characters_helper_test.rb

Is this a known issue or am I doing things wrong?
I have bundled, I uninstalled and reinstalled each gem in my set just to make sure I didn't forget anything, yet it doesn't stick.

Compatibility issue with ActiveAdmin and/or Rails 4

I'm using Rails 4 and ActiveAdmin (through akashkamboj/active_admin, rails4 branch).

Whenever I activate the haml-rails gem, I get this error when displaying the active_admin login form :

Showing [...]/app/views/active_admin/devise/sessions/new.html.erb where line #10 raised:
undefined method `check_box_checked?' for ActionView::Helpers::InstanceTag:Class

Line 10 is a remember_me checkbox :

f.input :remember_me, :label => t('active_admin.devise.login.remember_me'), :as => :boolean, :if =>  false  #devise_mapping.rememberable? }

If I comment this line, the form displays correctly.
Is it possible that something is overriding the :boolean input type?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.