Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: echen1031/fakerio
base: 4f8646b3da
...
head fork: echen1031/fakerio
compare: c7a231197a
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
Commits on Jun 11, 2014
@eladmeidar eladmeidar [FIX] 906ee47
Commits on Jun 24, 2014
@eladmeidar eladmeidar Merge branch 'master' of github.com:echen1031/fakerio 6d7a6df
Commits on Jun 25, 2014
@eladmeidar eladmeidar [FIX] c7a2311
View
6 app/controllers/api/v1/products_controller.rb
@@ -1,11 +1,11 @@
class Api::V1::ProductsController < Api::V1::BaseController
def index
count = (params[:count] || 1).to_i
- product = []
+ products = []
count.times do
- product << Product.new
+ products << Product.new
end
- respond_with(product)
+ respond_with(products)
end
end
View
5 app/views/dashboards/index.html.erb
@@ -14,3 +14,8 @@
<div class="clearfix"></div>
</div>
</div>
+<div class="row">
+ <h2>Credentials</h2>
+ <pre>uuid: <%= current_user.uuid %></pre><br/>
+ <pre>token: <%= current_user.authentication_token %></pre>
+</div>
View
2  config/application.rb
@@ -26,6 +26,6 @@ class Application < Rails::Application
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
- config.middleware.use "RateLimit"
+ #config.middleware.use "RateLimit"
end
end
View
12 db/schema.rb
@@ -13,18 +13,6 @@
ActiveRecord::Schema.define(version: 20140612141920) do
- create_table "people", force: true do |t|
- t.string "email"
- t.string "ip_address"
- t.string "name"
- t.string "credit_card"
- t.text "bio"
- t.string "phone"
- t.string "avatar"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
create_table "users", force: true do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false

No commit comments for this range

Something went wrong with that request. Please try again.