Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
= SimpleSearch
SimpleSearch privides search methods for your ActiveRecord models, by providing methods that allow you to search, group, and order. Main goal is to simplify all search related operations from url.
== Getting Started
In your Gemfile:
gem "simple-search" # Last officially released gem
In your controller:
def index @posts = Post.select('posts.*, comments.id as comment_id, comments.body as comment').joins(:comments) @posts = @posts.simplesearch(params) render :index end
In your view:
<%= form_tag('/posts', :method=>:GET) do -%>
ID > <%= text_field_tag 'id_gt', params[:id_gt] %>
Subject contains <%= text_field_tag 'subject_ct', params[:subject_ct] %>
<%= submit_tag "Search" %>
<% end -%>
<%=order_link(:id)%> | <%=order_link(:subject)%> | <%=order_link(:body)%> | <%=order_link(:comment_id)%> | <%=order_link(:comment)%> |
---|---|---|---|---|
<%=h post.id %> | <%=h post.subject %> | <%=h post.body %> | <%=h post.comment_id %> | <%=h post.comment %> |
=== Search postfixes
=== Sorting your result
=== Paging
=== Grouping
== Contributing to simple-search
== Copyright
Copyright (c) 2012 Allen Kim. See LICENSE.txt for further details.
FAQs
Unknown package
We found that simple-search demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.