Skip to content

Commit

Permalink
Merge pull request #9306 from spark-solutions/documentation_amendments
Browse files Browse the repository at this point in the history
Documentation amendments
  • Loading branch information
damianlegawiec committed Mar 19, 2019
2 parents 3fc052a + 9a36131 commit 024c8b7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
6 changes: 1 addition & 5 deletions guides/src/content/developer/core/preferences.md
Expand Up @@ -11,13 +11,9 @@ To implement preferences for a model, simply add a new column called `preference

```ruby
class AddPreferencesColumnToSpreeProducts < ActiveRecord::Migration[4.2]
def up
def change
add_column :spree_products, :preferences, :text
end

def down
remove_column :spree_products, :preferences
end
end
```

Expand Down
2 changes: 1 addition & 1 deletion guides/src/content/developer/customization/asset.md
Expand Up @@ -111,7 +111,7 @@ manual inclusion in your extensions installation instructions or provide
a Rails generator to do so.

For an example of an extension using a generator to install assets and
migrations take a look at the
migrations take a look at the
[install generator for Braintree Vzero](https://github.com/spree-contrib/spree_braintree_vzero/blob/master/lib/generators/spree_braintree_vzero/install/install_generator.rb).

## Overriding Spree's core assets
Expand Down
4 changes: 2 additions & 2 deletions guides/src/content/developer/customization/checkout.md
Expand Up @@ -164,7 +164,7 @@ define several `before_actions` for the `Spree::CheckoutController`:

### The Order Model and State Machine

The `Spree::Order` state machine is the foundation of the checkout process. Spree makes use of the [state_machines](hhttps://github.com/state-machines/state_machines) gem in the `Spree::Order` model as well as in several other places (such as `Spree::Shipment` and `Spree::InventoryUnit`.)
The `Spree::Order` state machine is the foundation of the checkout process. Spree makes use of the [state_machines](https://github.com/state-machines/state_machines) gem in the `Spree::Order` model as well as in several other places (such as `Spree::Shipment` and `Spree::InventoryUnit`.)

The default checkout flow for the `Spree::Order` model is defined in
`app/models/spree/order/checkout.rb` of spree_core.
Expand All @@ -180,7 +180,7 @@ from the system. The end result is a simplified data model along with the
ability for store owners to search and report on incomplete/abandoned orders.

<alert kind="note">
For more information on the state machines gem please see the [README](hhttps://github.com/state-machines/state_machines)
For more information on the state machines gem please see the [README](https://github.com/state-machines/state_machines)
</alert>

## Checkout Customization
Expand Down
4 changes: 2 additions & 2 deletions guides/src/content/developer/customization/i18n.md
Expand Up @@ -78,7 +78,7 @@ When reviewing the source of any view in Spree you'll notice that all text is
rendered by passing a string to a helper method similar to:

```erb
<%%= Spree.t(:price) %>
<%= Spree.t(:price) %>
```

The *Spree.t()* helper method looks up the currently configured locale and retrieves
Expand Down Expand Up @@ -128,7 +128,7 @@ into English
=> Action
```

&nbsp;
&nbsp;

## Setting the Default Locale

Expand Down
2 changes: 1 addition & 1 deletion guides/src/content/developer/customization/view.md
Expand Up @@ -35,7 +35,7 @@ All of those views will be added to your `app/views` directory under `spree` fol

### Switch storefront layout

If you want to leave most of the views in tact and you want to only change the layout file you can change it by setting a [preference](/developer/core/preferences.html) in your Spree initializer (`config/initializers/spree.rb`), eg.
If you want to leave most of the views intact and you want to only change the layout file you can change it by setting a [preference](/developer/core/preferences.html) in your Spree initializer (`config/initializers/spree.rb`), eg.

```ruby
Spree.config do |config|
Expand Down
Expand Up @@ -122,6 +122,6 @@ Feel free to explore some of the Admin Panel features that Spree has to offer an

If you've followed the steps described in this tutorial, you should now have a fully functional Spree application up and running.

We recommend you should continue to [Customization section](/developer/customization/) to learn how to modify and extend your Spree application.
We recommend you should continue to [Customization section](/developer/customization/view.html) to learn how to modify and extend your Spree application.

To learn more about Spree internals please refer [Core section](/developer/core/).
To learn more about Spree internals please refer [Core section](/developer/core/view.html).

0 comments on commit 024c8b7

Please sign in to comment.