werein / x-editable-rails

Edit fields easily with X-Editable helper

Home Page:https://wereinhq.com/guides/x-editable-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't understand how to use this

feliperaul opened this issue · comments

commented

Sorry guys, but I can't understand this line in the docs

%h1= editable @model, :name

How am I supposed to use this inside a .html.erb view ?

Let's assume I have a h1 element I want to make x-editable in the view. What should I do ?

That's haml syntax 
Use this in erb

<h1><%= editable @model, name %></h1>

Von meinem iPhone gesendet

_____________________________

From: pqdbr notifications@github.com
Sent: Mittwoch, November 4, 2015 2:45 nachm.
Subject: [x-editable-rails] Can't understand how to use this (#64)
To: werein/x-editable-rails x-editable-rails@noreply.github.com

Sorry guys, but I can't understand this line in the docs

%h1= editable @model, :name

How am I supposed to use this inside a .html.erb view ?

Let's assume I have a element I want to make x-editable in the view. What should I do ?


Reply to this email directly or view it on GitHub.