Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature #104660900 haikus index view #22

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

kangkyu
Copy link
Collaborator

@kangkyu kangkyu commented Oct 25, 2015

use kaminari gem for pagination
find page by "?page=" parameter params[:page]

add skeleton css

use react-rails gem
add Haiku and Haikus component

    bundle "react-rails" gem
    rails generate react:install
      app/assets/javascripts/application.js
      app/assets/javascripts/components.js
      app/assets/javascripts/components
app/controllers/haikus_controller.rb
app/assets/javascripts/components/Haiku.js.jsx
app/assets/javascripts/components/Haikus.js.jsx
app/views/layouts/application.html.erb

Edit the seeds file to create haikus with its three lines
db/seeds.rb
add normalize.css skeleton.css file and require them
import Raleway font

app/assets/stylesheets/application.css
app/assets/stylesheets/normalize.css
app/assets/stylesheets/skeleton.css
app/views/layouts/application.html.erb

apply its container class to layout template
find page by "?page=" parameter params[:page]
install config file

app/controllers/haikus_controller.rb
config/initializers/kaminari_config.rb
code of problem was app/controllers/haikus_controller.rb #index method
modified:   spec/requests/haikus_spec.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant