Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fermion-better_partials

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fermion-better_partials

  • 1.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

better_partials

Provides syntactic suger for render :partial

Example

Render a partial <%= partial "people/search_box" %>

Pass some parameters in <% form_for @person do |f| %> <%= partial "people/form", :f => f %> <% end %>

Pass in a collection <%= partial "people/person", :collection => @people %>

Or the terse way <%= partials @people %>

Also works, but not as nice reading <%= partial @people %>

Rendering a block <% partial "people/box" do %> Inner connect goes here.. (gets called in your partial's yield statement) <% end %>

Special Partial Options pass through to render :partial (all others are passed through to the :locals parameter)

:collection, :spacer_template, :object, :use_full_path

Install into vendor/plugins

script/plugin install git://github.com/jcnetdev/better_partials.git

Install via Gem

If you're using Rails 2.1, you can use the plugin as a gem.

Add this to your environment.rb:

config.gem 'jcnetdev-better_partials', :version => '>= 1.0', :lib => 'better_partials', :source => 'http://gems.github.com'

Then install via: rake gems:install

Copyright (c) 2008 Jacques Crocker (www.railsjedi.com), released under the MIT license

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc