0.0
No commit activity in last 3 years
No release in over 3 years
This gem will display random quotes , and show them on your view pages. You can also add your quotes, random_quotes wll display them
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.11
~> 10.0
~> 3.0
 Project Readme

Random Quotes

A gem to show random quotes on your rails view files

Installation

Add to your Gemfile:

gem 'random_quotes'

Or install:

$ gem install random_quotes

Usage

In your view pages simply call

<%= sample_quotes %>

Now Quotes will be changed automatically,each time you refresh the page

And that's it!

Configuration

I have added more than 250 quotes with this gem, If you want to add your own quotes 

create file

config/initializers/random_quotes.rb

and add your quotes

RandomQuotes.configure.quotes = "my quote 1 ,my quote 2,my quote 3"

Now <%= sample_quotes %> - will display quotes in gem <%= my_quotes %> - will display quotes from initializer <%= random_quotes %>- will display quotes in gem

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D