{"action":"opened","issue":{"url":"https://api.github.com/repos/bernat/best_in_place/issues/497","labels_url":"https://api.github.com/repos/bernat/best_in_place/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/bernat/best_in_place/issues/497/comments","events_url":"https://api.github.com/repos/bernat/best_in_place/issues/497/events","html_url":"https://github.com/bernat/best_in_place/issues/497","id":92199695,"number":497,"title":"Possible to use :display_with and :nil together?","user":{"login":"behindcurtain3","id":377379,"avatar_url":"https://avatars.githubusercontent.com/u/377379?v=3","gravatar_id":"","url":"https://api.github.com/users/behindcurtain3","html_url":"https://github.com/behindcurtain3","followers_url":"https://api.github.com/users/behindcurtain3/followers","following_url":"https://api.github.com/users/behindcurtain3/following{/other_user}","gists_url":"https://api.github.com/users/behindcurtain3/gists{/gist_id}","starred_url":"https://api.github.com/users/behindcurtain3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behindcurtain3/subscriptions","organizations_url":"https://api.github.com/users/behindcurtain3/orgs","repos_url":"https://api.github.com/users/behindcurtain3/repos","events_url":"https://api.github.com/users/behindcurtain3/events{/privacy}","received_events_url":"https://api.github.com/users/behindcurtain3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-30T21:05:56Z","updated_at":"2015-06-30T21:05:56Z","closed_at":null,"body":"Here is the code I'm trying to use:\r\n\r\n    <%= best_in_place_if user_signed_in?, @movie, :runtime, :as => :input,\r\n          :display_with => lambda {|v| t('movie.runtime.data', :length => v) },\r\n          :nil => t('movie.unknown'),\r\n          :inner_class => 'form-control' %>\r\n\r\nand\r\n\r\n    <%= best_in_place_if user_signed_in?, @movie, :released, :as => :date,\r\n        :display_with => :time_tag,\r\n        :nil => t('movie.unknown'),\r\n        :inner_class => 'form-control' %>\r\n\r\nOn both of those examples the nil portion never fires. It seems to be overwritten by the :display_with option. I did this in another portion of my code and it works fine:\r\n\r\n    <%= best_in_place_if user_signed_in?, @movie, :summary, :as => :textarea,\r\n        :inner_class => 'form-control', :nil => t('movie.unknown') %>\r\n\r\nAm I doing something wrong or could someone help me with what I'm missing here?"}}