Questions tagged [best-in-place]

A jQuery-based AJAX Inplace-Editor that uses RESTful services to edit items without forms. It is a gem for Ruby on Rails.

Best in Place is a jQuery-based AJAX Inplace-Editor that uses RESTful services to edit items without forms. It is a gem for Ruby on Rails.

218 questions
3
votes
1 answer

Rails - Creating records with best in place gem

I have Items and Plans associated to those items item.rb name: string cost: float plan.rb belongs_to: Item percentage: float month: integer year: integer I'm building a table where I want to edit and create plans. Something like this Item Jan…
nigal
  • 181
  • 1
  • 10
3
votes
1 answer

how to integrate best-in-place with bootstrap-datepicker

Everything is working fine with best-in-place but when I try to update a date with rails bootstrap-datepicker it is not working in fact when I click to select a date from calender best-in-place closed editable mode let me share some code. <%=…
Asnad Atta
  • 3,855
  • 1
  • 32
  • 49
3
votes
0 answers

Best_in_place, activating multiple fields

I am using best_in_place in my rails app, here is its git. I am trying to add activator attribute to it, I have gone through these questions: link1 and link2 and it works fine. but I want to activate two fields with same activator. my view looks…
sonalkr132
  • 967
  • 1
  • 9
  • 25
3
votes
1 answer

Rails best_in_place gem not updating data

I've looked everywhere for a solution to this, but all of the common solutions to this issue aren't working for me. Any help is greatly appreciated. My problem is just that the rails best_in_place gem doesn't save any of my data after I make a…
tomtom
  • 1,130
  • 2
  • 11
  • 35
3
votes
1 answer

Rails 4 - best_in_place: Unprocessable Entity

I'm using best_in_place to edit a field in a profile database managed with 'devise'. Everything updates fine in the edit view, but shortly after editing a single field with best_in_place the field returns to its original value, and the database has…
steel
  • 11,883
  • 7
  • 72
  • 109
3
votes
1 answer

Rails 4 - best_in_place gem and many-to-many association

I am struggling to add the ability to update a contact languages using best_in_place (a jQuery inplace-editor gem). I have a contact object, a language object and a has_and_belongs_to_many :languages relationship between contacts and languages.…
3
votes
1 answer

ruby on rails + best_in_place + datatables + haml

DataTables editing example (using best_in_place) This example shows how to create editable tables using datatables.net and best_in_place. Currently Datatables.net only has example for using JediTables jQuery plugin.
Bruno
  • 6,211
  • 16
  • 69
  • 104
3
votes
2 answers

Rails 3 issue with best_in_place and Nested Attributes

I'm a bit of a Rails noob and I'm having some trouble getting my head around an issue. I'm using Rails 3.2.13 with the following gems (in addition to the default gems): gem 'devise' gem 'cancan' gem 'cocoon' gem 'best_in_place' I am using cocoon…
3
votes
2 answers

In-place editing with Rails, jquery and best_in_place gem

I've got a task list app where tasks are displayed by category. I have the categories listed in two places. I'm allowing the category name to be edited in-place using the best_in_place gem. I have that working fine. My issue is that since I have the…
Jack
  • 1,125
  • 1
  • 13
  • 29
3
votes
2 answers

Best_in_place tab trough

I'm using best_in_place gem so I can edit multiple students in my index view. The problem though, is that the usuability is bad. I have to click, type the info, enter/click and click again to edit another information. Is that a way that I can press…
Allan
  • 336
  • 3
  • 18
3
votes
1 answer

Rails - best_In_place gem with date

I'm trying to use the best_in_place gem with type => date , but I'm having some problems with the format. My rails date format is as follows: Time::DATE_FORMATS.merge!({:default => '%d %b (%a)'}) Date::DATE_FORMATS.merge!({:default => '%d %b…
user1069624
  • 561
  • 2
  • 9
  • 24
3
votes
1 answer

Using Best In Place gem, how do I allow links to be edited in place?

I have an object called "item" that has a "title" that can be linked to any URL. I have used the following code to allow the title to be edited in place using the Best in Place gem. The editing part works fine, but when the removes focus from the…
bergie3000
  • 1,091
  • 1
  • 13
  • 21
3
votes
2 answers

best_in_place is not a function error in Rails 3.2.1

I am using best_in_place gem for my Rails 3.2.1 application. I have no error in my development. When I try to run the application in production, I am getting a script error $(".best_in_place").best_in_place is not a function in my browser. In my…
Amal Kumar S
  • 15,555
  • 19
  • 56
  • 88
3
votes
3 answers

How can i integrate country_select gem with best_in_place editing

I am using the best_in_place gem to edit records inline and country_select to render a list of countries to select from. When using best_in_place to edit a select field i do this: <%= best_in_place(@home, :country_name, :type => :select, :collection…
Hishalv
  • 3,052
  • 3
  • 29
  • 52
3
votes
2 answers

How to trigger events upon the completion of a best_in_place edit?

In the show page, I display a list of dates of the occurrence of a periodic event, and statistics calculated ver all the dates such as max, min, and average interval between successive dates. I use the best_in_place gem to allow in-place editing of…
Karen W
  • 269
  • 2
  • 11
1 2
3
14 15