Ruby on Rails covers:
- Rails 3: Single Table Inheritance
- Index multiple document with Solr
- Add Custom validation with Paperclip
- Upgrade Rails Performance
- Send Tweets from your Rails Application
- Cucumber and Rspec with Rails
- Rails and MongoDb (no sql database)
- Installing and Configuring Pik on Windows
- Implementing auto-select with Jquery and Rails
- New way of Installing Pik on Windows
- Core Ruby Concepts
- Host Ruby on Rails application with Heroku
- Some interesting Ruby facts
- rake aborted: no such file to load –mysql
- Bitly: to minimize URL in ruby
- Facebooker: Fetch contacts in Rails
- Contacts gem: Installtion error and its solution
- Generate XML with Rails
- Ruby on Rails Interview questions
- Rails and prototype: Auto-Select
In PHP Section You Will Find the Following Posts: –
[A] Validates Username and Password with PHP
[B] Create a Secure PHP Login Script
Articles that are in Moderation:
[1] Creating a Examination Section, Where Students can Give Online Exams and can able to See their Performances Using RoR.
[2] File Uploading. Sharing and Downloading With Multiple Users Using RoR
[3] How to create Communities, Publishing Posts in that Comm. Using Rails.
and Many More…. So Stay with Me.. I will keep You Updating
Waiting for Your Valuable Responses
Your Friend
Puneet Pandey
How can I make a multiple field search in Rails?, Whitout ajax
Hi,
If I am not wrong you have a single table with multiple columns and you want to search your keyword within those columns, If this is the scenario, you should write:
query = params[:q]
@contacts = Contact.find(:first, :conditions => [“first_name LIKE query or last_name LIKE query or email LIKE query”])
Where 1.params[:q] is the name of your search text field
2. first_name, last_name, email are the columns name of your table
3. Contact is your model and contacts will be your table name
Hope this helps
Regards
Puneet