https://github.com/jimmyn/rails_view_helpers
Few rails view helpers
https://github.com/jimmyn/rails_view_helpers
Last synced: about 2 months ago
JSON representation
Few rails view helpers
- Host: GitHub
- URL: https://github.com/jimmyn/rails_view_helpers
- Owner: jimmyn
- License: mit
- Created: 2015-02-15T11:54:13.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-25T11:51:16.000Z (about 10 years ago)
- Last Synced: 2025-01-17T03:33:53.026Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 172 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# RailsViewHelpers
Simple set of Rails View Helpers.
This gem includes 'active_link_to' and 'phone' gems## Installation
Add this line to your application's Gemfile:
```ruby
gem 'rails_view_helpers'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install rails_view_helpers
## Usage
```
ext_link_to 'twitter.com/granitweet'
=> twitter.com/granitweetext_link_to 'https://twitter.com/granitweet'
=> https://twitter.com/granitweetphone_link_to '9213467823'
=> +7 (921)346 7823phone_link_to '1234567'
=> +7 (812)123 4567
```
To change default codes use
```
Phoner::Phone.default_country_code = '7'
Phoner::Phone.default_area_code = '812'
```## Contributing
1. Fork it ( https://github.com/[my-github-username]/rails_view_helpers/fork )
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. Create a new Pull Request