Giter Site home page Giter Site logo

in_place_editing's Introduction

InPlaceEditing
==============

Example:

  # Controller
  class BlogController < ApplicationController
    in_place_edit_for :post, :title
  end

  # View
  <%= in_place_editor_field :post, 'title' %>

Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license  

in_place_editing's People

Contributors

dhh avatar jeremy avatar pstradomski 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

in_place_editing's Issues

Not saving in Rails 3

Hello,

I am very new to RoR. I am using Rails 3 and I installed this plugin with a quick scaffolded app. When I go to edit in place, it just says "saving..." but it doesn't actually commit the change. When I use the regular edit page, the change does in fact save. Is there any more information on how to implement this plugin? I think I am missing something.

Many thanks!

Cannot use in index scaffold view

This works when I use it in a scaffold edit view but it doesn't work when I use it in the index scaffold view? What is this?

I get an error similar to this:

Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id

My view code for index is standard like this:

<% @dogs.each do |dog| %>

<%= in_place_editor_field :dog, 'age' %> ....

The problem is in this code:

def in_place_editor_field(object, method, tag_options = {}, in_place_editor_options = {})
instance_tag = ::ActionView::Helpers::InstanceTag.new(object, method, self)

How can I adapt this to work in my index view?

Play nice with the new routes in Rails 3.0?

Rails 3.0 deprecated the default route that makes all public controller methods reachable. This plug-in relies on set_* methods being accessible, which means I have to list them in both the controller and the route table. It doesn't seem very DRY to me, but I can't think of a good way to remove the redundancy.

Help, please?

Thanks,
Victor

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.