Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add doc standalone extension in your Rails Application
- Loading branch information
1 parent
7dfbb47
commit 923be7c
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...a Refinery CMS extension as a standalone extension in your Rails Application.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
## Using a Refinery CMS extension as a standalone extension in your Rails Application | ||
|
||
A Refinery CMS extension can be used as a standalone extension in your Rails application. | ||
|
||
This guide will show you how to: | ||
* Bootstrap a rails application with just the use of a Refinery CMS extension like +refinerycms-blog+ | ||
|
||
### Bootstrap a rails app with just the use of a Refinery CMS extension like +refinerycms-blog+ | ||
|
||
First, bootstrap a new rails application: | ||
|
||
```ruby | ||
$ rails _4.2.6_ new blog_test_app | ||
``` | ||
|
||
Put just the +refinerycms-blog+ in your project's Gemfile: | ||
|
||
```ruby | ||
$ gem "refinerycms-blog", git: "https://github.com/refinery/refinerycms-blog" | ||
``` | ||
|
||
This will merely pull in `refinerycms-core` and `refinerycms-settings` based on the current gemspec dependencies. | ||
|
||
Then you can run: | ||
|
||
```ruby | ||
$ bundle install | ||
$ rails generate refinery:cms | ||
``` | ||
|
||
And all the other normal set up tasks like migrations. | ||
|
||
Now, you should have a Rails app with _only_ the Refinery CMS Blog. | ||
|
||
Finally, start your application and enjoy the use of Refinery CMS Blog only: | ||
|
||
```ruby | ||
$ rails server | ||
``` |
41 changes: 41 additions & 0 deletions
41
...inery CMS extension as a standalone extension in your Rails Application.textile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
h2. Using a Refinery CMS extension as a standalone extension in your Rails Application | ||
|
||
A Refinery CMS extension can be used as a standalone extension in your Rails application. | ||
|
||
This guide will show you how to: | ||
* Bootstrap a rails application with just the use of a Refinery CMS extension like +refinerycms-blog+ | ||
|
||
endprologue. | ||
|
||
h3. Bootstrap a rails app with just the use of a Refinery CMS extension like +refinerycms-blog+ | ||
|
||
First, bootstrap a new rails application: | ||
|
||
<ruby> | ||
$ rails _4.2.6_ new blog_test_app | ||
</ruby> | ||
|
||
Put just the +refinerycms-blog+ in your project's Gemfile: | ||
|
||
<ruby> | ||
$ gem "refinerycms-blog", git: "https://github.com/refinery/refinerycms-blog" | ||
</ruby> | ||
|
||
This will merely pull in +refinerycms-core+ and +refinerycms-settings+ based on the current gemspec dependencies. | ||
|
||
Then you can run: | ||
|
||
<ruby> | ||
$ bundle install | ||
$ rails generate refinery:cms | ||
</ruby> | ||
|
||
And all the other normal set up tasks like migrations. | ||
|
||
Now, you should have a Rails app with _only_ the Refinery CMS Blog. | ||
|
||
Finally, start your application and enjoy the use of Refinery CMS Blog only: | ||
|
||
<ruby> | ||
$ rails server | ||
</ruby> |