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
37
votes
6 answers

Multiple Combo Boxes With The Same Data Source (C#)

UPDATE: This is now resolved, see answer below. On one of my forms (in a Windows Forms application) I have 3 Combo Boxes. These combo boxes need to display a list of prices (In text, with an integer back-end value). All of these combo boxes are…
Tom Glenn
  • 1,982
  • 4
  • 16
  • 26
19
votes
1 answer

How can I get best_in_place's respond_with_bip working?

I am having trouble with getting best_in_place fully functional. The problem is that once I edit a field, in order to be able to click on and edit that field again I need to refresh the page. I may be wrong, but I have a feeling this has something…
pitachip
  • 965
  • 3
  • 7
  • 24
15
votes
0 answers

best_in_place ":nil" function does not work in AJAX inserted partial

I have a list of records on my page. I submit a form remotely via AJAX and the new record is appended to the list. All best_in_place features immediately work apart from the :nil option. This doesn't display the default value that I set. This makes…
Betjamin Richards
  • 1,071
  • 2
  • 12
  • 34
11
votes
6 answers

Inline editing with Rails gem 'best_in_place' - bug: new lines are lost after edit on textarea

I am using best_in_place gem to do some inline editing in a Rails app. One of the property of my object is of type text, and I want it to be edited in a text area, so I did this: <%= best_in_place @myobject, :description, :type => :textarea %> It…
Guillaume
  • 21,685
  • 6
  • 63
  • 95
9
votes
4 answers

Display checkbox best_in_place ruby gem

I am using the best_in_place gem in a project, and i am trying to display a checkbox on it's own place, but i cannot do it. I am searching about it, but i cannot find out the answer anywhere. I just can find people talking about display either "no"…
Victor Augusto
  • 2,406
  • 24
  • 20
9
votes
3 answers

best_in_place - use updated value back in view

I have an idea and a problem I can't seem to find answer or solution to. Some info if required later or helpful: Rails version 3.2.9 best_in_place (git://github.com/straydogstudio/best_in_place.git) Ruby 1.9.3p327 Ok, so i have settings page where…
Mitja Čebokli
  • 385
  • 4
  • 14
9
votes
0 answers

Radio buttons with Best In Place form?

I'm wondering if there is any way to have radio buttons update in place using the Best In Place gem. I'm using it for my form and works great, but Best in place doesn't seem to provide a radio button input type. I could use check boxes I guess but…
GGizmos
  • 3,443
  • 4
  • 27
  • 72
8
votes
5 answers

Integration of WYSIWYG editor to best-in-place textarea

I'm using best_in_place gem to editing client's info in-place. My question is, how can I integrate a WYSIWYG Editor for editing this content as HTML? I'm currently using this editor: https://github.com/Nerian/bootstrap-wysihtml5-rails/ I'm not good…
Stejsky
  • 103
  • 5
7
votes
1 answer

Rails 3 - best_in_place editing

Hopefully a simple answer; I am using the gem best_in_place and it works great. I'm trying to figure out how to create a drop down menu using: :type => :select, :collection => [] What I want to be able to do is pass in a list of names that have…
FattRyan
  • 906
  • 2
  • 12
  • 26
7
votes
4 answers

Best_in_place display_with not finding helper

There's not a lot of documentation as to how to use the display_with option in Best In place, but I'm trying to get Best_in_Place to display dates in condensed form, (mm/dd/yyyy). My db (sqlserver) has the dates stored in datetime format, and I use…
GGizmos
  • 3,443
  • 4
  • 27
  • 72
7
votes
2 answers

Style placeholder differently from value with best_in_place

I'd think I'm missing something since there seems to be no way via CSS to differentiate between a best_in_place value and the placeholder (data-nil="enter your number"). I'd just like to style the placeholder differently then the actual value so it…
Andrew Lank
  • 1,607
  • 1
  • 15
  • 29
6
votes
1 answer

best_in_place retains original values after update

I'm using best_in_place to do in-page editing of a table of data in a ruby-on-rails app. The in-place editing works, but I have a corner case that fails. A pair of items in the row (device_name, generic_name) must be unique. If they are not…
Leonard
  • 13,269
  • 9
  • 45
  • 72
6
votes
1 answer

How to trigger best_in_place events

I've looked all over Google and StackOverflow and looked through the best_in_place javascript code to no avail. I am using best_in_place to edit a property of a Post model by using a textarea, like so: <%= best_in_place @post, :summary, …
biggles
  • 3,021
  • 5
  • 27
  • 36
6
votes
1 answer

best_in_place gem checkbox issue with Rails 4 (why is string not converted to boolean?)

I have the following in my application: # some_view_file.html.haml = best_in_place element, :inbox, :type => :checkbox # imap_accounts_controller.rb def update element = ImapAccount.find(params[:id]) …
Cjoerg
  • 1,271
  • 3
  • 21
  • 63
5
votes
1 answer

Best_In_Place inline edits with nested attributes

I am currently trying to use the best_in_place gem in order to do inline editing within an HTML table. I am showing a cart in cart's show view. Within the cart's show view, I have the ability to add lineItems. When an LineItem is created, a new…
1
2 3
14 15