RailsCasts Pro episodes are now free!

Learn more or hide this

Ritvvij Parrikh's Profile

GitHub User: pykih

Site: http://ritvvijparrikh.com/

Comments by Ritvvij Parrikh

Avatar

Got it - 'data-skip-pjax' => true

Avatar

I'm using pjax_rails. How do I call a particular link in a non-pjax mode?

Avatar

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