RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: pykih
Site: http://ritvvijparrikh.com/
Got it - 'data-skip-pjax' => true
I'm using pjax_rails. How do I call a particular link in a non-pjax mode?
Thanks Ryan.
@Olivier
1) Create new Helper
class Buildr < ActionView::Helpers::FormBuilder def label(method, text = nil, options = {}, &block) str = @template.label(@object_name, method, text, objectify_options(options), &block) str = str + "*" if object.class.validators_on(method).map(&:class).include? ActiveModel::Validations::PresenceValidator return str end end
2) In form_for call :builder => Buildr
Got it - 'data-skip-pjax' => true
I'm using pjax_rails. How do I call a particular link in a non-pjax mode?
Thanks Ryan.
@Olivier
1) Create new Helper
class Buildr < ActionView::Helpers::FormBuilder
def label(method, text = nil, options = {}, &block)
str = @template.label(@object_name, method, text, objectify_options(options), &block)
str = str + "*" if object.class.validators_on(method).map(&:class).include? ActiveModel::Validations::PresenceValidator
return str
end
end
2) In form_for call :builder => Buildr