javascript - Railscasts Not Working - 147 and 302 -


i tried implementing features in railscast 147 sortable lists , 302 in-place editing, after having followed every step along way, effects showed on ryan's screen different mine.

in case of 302 in-place editing, clicking on supposedly in-place-editing-enabled text had no effects!

i had simple code implement best_in_place in views/users/show.html.erb

<h1>   <%= gravatar_for @user %>   <%= @user.name %> </h1>  <% firstname = @user.name.split(" ")[0] %> <p>     <%= best_in_place @user, :email %> </p> 

and in case of 147 sortable lists, line <%= sortable_element("faq") %> gave me undefined method 'sortable_element' error.

please help!

it's impossible diagnose issue without seeing code doesn't behave expected first part of question.

sortable_element deprecated in rails 3.0.9, explains second issue.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -