Sha256: 4ae5c03f48e95b32ad2964e9edf53d0cb7ca9695af8622af9dc3f27c2efb9e58

Contents?: true

Size: 1.35 KB

Versions: 3

Compression:

Stored size: 1.35 KB

Contents

# Tramway::Profiles

This gem provides easy way to add info about social profiles of your organization

## Installation

#### 1. Add this line to your application's Gemfile:

```ruby
gem 'tramway-profiles'
```

#### 2. Generations

```shell
rails g tramway:profiles:install
rails db:migrate
```

#### 3. Install tramway-admin gem. [How-to](https://github.com/ulmic/tramway-dev/tree/develop/tramway-admin)

#### 4. Add social network to the admin panel

*app/initializers/tramway.rb*

```ruby
::Tramway.set_available_models(::Tramway::Profiles::SocialNetwork, project: :your_project_name)
```

#### 5. Now you have SocialNetwork objects in your project, that associated with [Tramway.application](https://github.com/ulmic/tramway-dev/tree/develop/tramway#how-to-create-model-that-will-be-an-application-model-for-the-tramway) by default

## Usage. English

...coming soon

## Использование
[Прочитайте нашу инструкцию по использованию гема](https://github.com/ulmic/tramway-dev/blob/develop/tramway-profiles/docs/main.md)

## Troubleshooting

1. `undefined method 'profile_link'` just add `include ::Tramway::Profiles::ApplicationHelper` to your main helper

## Contributing
Contribution directions go here.

## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-profiles-1.4.1.4 README.md
tramway-profiles-1.4.1.3 README.md
tramway-profiles-1.4.1.2 README.md