Giter VIP home page Giter VIP logo

raddit's Introduction

Week 1 of my 12 in 12 Challenge

My goal with this challenge is to teach myself Ruby on Rails by building a new web app (using rails) each week for 12 weeks.

This week I built a link aggregator site, similar to Reddit or Hacker News, where a user can sign up, submit a link, as well as comment and vote up or down on link submissions.

View the demo application here

raddit's People

Contributors

mackenziechild avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

raddit's Issues

error index.html.erb

Submitted <%= time_ago_in_words(link.created_at) %> by <%= link.user.name %>

should be

Submitted <%= time_ago_in_words(link.created_at) %> by <%= link.user.email%>

Undefined method `comment_path'

After leaving a comment I get the following error:

undefined method `comment_path' for #<#Class:0x007f95aa408a70:0x007f95a9b34890>

I've tried replacing the controller and view files with the ones in the repo here, still doesn't work. Any clues why this might be ?

undefined method `name' for nil:NilClass

I get an undefined method `name' for nil:NilClass and for the life of me cant actually fix it anyone have a fix for this?
<%= time_ago_in_words(link.created_at) %>by <%= link.user.name %>

devise update user doesn't work

in this application, account update function doesn't work, and deletes the user. i followed your tutorial and my raddit app's user update function doesn't work either. i don't understand why. it must be about your views. i changed back devise views to default and it works.

Week01: Reddit Clone text tutorial issue

Voting Part

as you mentioned:

For this we are going to use a handy little gem called acts_as_votable.

so after:

$ git checkout -b add_acts_as_votable

we need to add gem 'acts_as_votable', '~> 0.10.0' before running bundle install

and then:

$ bundle install

Incorrect code on your tutorial page

Hi,
Thanks for the great tutorials. I have just been having a look through the first week tutorial. I noticed a little issue where your create method did not match your code.

http://mackenziechild.me/12-in-12/1/
def create
@link = current_user.build(link_params)
should match your code:
def create
@link = current_user.links.build(link_params)

Tutorial is great otherwise!
Thanks for that!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.