search for: can_edit

Displaying 2 results from an estimated 2 matches for "can_edit".

2008 Oct 16
4
Removing values from a select (drop-down) box
Hello, I am working on a project, and on one form we have a select (drop- down) box where the user needs to be able to select from a list of clients. The box is currently being populated with: <%= collection_select(:client, :id, @account.clients, :id, :name) %> The problem is that some of these clients may have already been selected, and we need to remove them from the list. Is this
2013 Feb 25
7
Optimistic Locking Enhancements: Gem or Core?
I''m working on an app that makes use of rails'' optimistic locking feature and seeing some possibilities for improvements. It seems a bit tedious to have to add :lock_version to forms wherever the model is used. You also have to "hack" around rails'' UJS feature to add it as a URL parameter when using remote: true, method: [:put, :patch, :post, :delete].