> Slim-rails requires slim gem, so it didn't help me.
> I tried to debug and saw really strange thing. In render method of
> action_view/template.rb I have ActionView:Template object with right path
> to my layout, but with wrong @source field.
> It filled with text from my old html.erb not with slim. Is there some some
> sort of caching in rails, which I don't know about?
> In my development environment I
> have: config.action_controller.perform_caching = false, maybe I need to do
> something more? Restarting IDE (RubyMine) isn't really helpful.
> среда, 21 марта 2012 г. 16:02:34 UTC+4 пользователь Ankur написал:
>> Your files look good. Try with regular slim gem instead of slim-rails
>> Ankur
>> On Wed, Mar 21, 2012 at 2:08 AM, Alexander Elmekeev <dona...@gmail.com>wrote:
>>> Hi!
>>> I decided to try slim but on start I have strange error.
>>> ActionView::Template::Error (Unknown line indicator
>>>> app/views/layouts/application.**html.slim, Line 1
>>>> <!DOCTYPE html>
>>>> ^
>>>> ):
>>>> slim (1.1.1) lib/slim/parser.rb:448:in `syntax_error!'
>>> It appears on all pages. For example:
>>> Started GET "/" for 127.0.0.1 at 2012-03-21 09:47:49 +0400
>>>> Processing by AuthenticationsController#**index as HTML
>>>> Authentication Load (0.9ms) SELECT "authentications".* FROM
>>>> "authentications"
>>>> User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" =
>>>> 17 LIMIT 1
>>>> CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17
>>>> LIMIT 1
>>>> Rendered authentications/index.html.**slim within
>>>> layouts/application (88.4ms)
>>> I have "gem 'slim-rails'" in my Gemfile and
>>> views/authentications/index.**html.slim:
>>> table
>>>> tr
>>>> th User
>>>> th Provider
>>>> th Uid
>>>> - for authentication in @authentications
>>>> tr
>>>> td = authentication.user_id
>>>> td = authentication.provider
>>>> td = authentication.uid
>>>> td = link_to "Destroy", authentication, :confirm => 'Are you
>>>> sure?', :method => :delete
>>> views/layouts/application.**html.slim:
>>> doctype 5
>>>> html
>>>> head
>>>> title gttc
>>>> = stylesheet_link_tag "application", :media => "all"
>>>> = javascript_include_tag "application"
>>>> = csrf_meta_tags
>>>> body
>>>> p hi!
>>>> = yield
>>> I can't figure out cause of this error. It seems like slim parser is
>>> trying to parse already generated html. But why? Where is my mistake?
> среда, 21 марта 2012 г. 16:02:34 UTC+4 пользователь Ankur написал:
>> Your files look good. Try with regular slim gem instead of slim-rails
>> Ankur
>> On Wed, Mar 21, 2012 at 2:08 AM, Alexander Elmekeev <dona...@gmail.com>wrote:
>>> Hi!
>>> I decided to try slim but on start I have strange error.
>>> ActionView::Template::Error (Unknown line indicator
>>>> app/views/layouts/application.**html.slim, Line 1
>>>> <!DOCTYPE html>
>>>> ^
>>>> ):
>>>> slim (1.1.1) lib/slim/parser.rb:448:in `syntax_error!'
>>> It appears on all pages. For example:
>>> Started GET "/" for 127.0.0.1 at 2012-03-21 09:47:49 +0400
>>>> Processing by AuthenticationsController#**index as HTML
>>>> Authentication Load (0.9ms) SELECT "authentications".* FROM
>>>> "authentications"
>>>> User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" =
>>>> 17 LIMIT 1
>>>> CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17
>>>> LIMIT 1
>>>> Rendered authentications/index.html.**slim within
>>>> layouts/application (88.4ms)
>>> I have "gem 'slim-rails'" in my Gemfile and
>>> views/authentications/index.**html.slim:
>>> table
>>>> tr
>>>> th User
>>>> th Provider
>>>> th Uid
>>>> - for authentication in @authentications
>>>> tr
>>>> td = authentication.user_id
>>>> td = authentication.provider
>>>> td = authentication.uid
>>>> td = link_to "Destroy", authentication, :confirm => 'Are you
>>>> sure?', :method => :delete
>>> views/layouts/application.**html.slim:
>>> doctype 5
>>>> html
>>>> head
>>>> title gttc
>>>> = stylesheet_link_tag "application", :media => "all"
>>>> = javascript_include_tag "application"
>>>> = csrf_meta_tags
>>>> body
>>>> p hi!
>>>> = yield
>>> I can't figure out cause of this error. It seems like slim parser is
>>> trying to parse already generated html. But why? Where is my mistake?