How To Build A Blog Using Rails 5

How To Build A Blog Using Rails 5

Ryan Blakely

8 лет назад

27,467 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Gaetano2553
@Gaetano2553 - 04.09.2016 16:59

IT's WONDERFUL TUTORIALS THANKS YOU 😍😍😍😍

Ответить
@Gaetano2553
@Gaetano2553 - 04.09.2016 17:01

IT'S WONDERFULL TUTORIAL 😍😍😍

Ответить
@willveagle6248
@willveagle6248 - 06.09.2016 00:37

Great tutorial. Easy to follow. Look forward to more tutorials. Thank you very much!

Ответить
@zachariastraianos1930
@zachariastraianos1930 - 09.09.2016 02:30

Great....Keep up the good work

Ответить
@baybay1234
@baybay1234 - 09.09.2016 10:51

Please keep it coming! Ive been learning rails for a month now and I absolutely love it!

Ответить
@lespiedscarres6321
@lespiedscarres6321 - 17.09.2016 02:33

thanks for the awesome video!

Ответить
@keithmacinnis
@keithmacinnis - 24.09.2016 21:27

I would like the option when creating posts to either upload an image, or to link to an exisiting image already online. How can this feature be added ?

Ответить
@vishvaasvardaan
@vishvaasvardaan - 25.09.2016 14:41

I get this error whenever i am trying to insert images in posts . NoMethodError in Admin::PostsController#create.

Ответить
@seanhogge
@seanhogge - 16.10.2016 04:23

Why did you use a CDN instead of downloading the js and CSS files so that the asset pipeline could manage them?

Ответить
@DCITLLC
@DCITLLC - 22.10.2016 07:48

This was quick awesome and overall a great tutorial.

Ответить
@TheDraein
@TheDraein - 26.10.2016 05:55

As soon as i get to the point to "rails db:seed" i get an error:
rails aborted!
LoadError: cannot load such file -- bcrypt_ext

im on windows 10. Ive searched everyhwere but cant find any working solution.
Du U have any idea?

Ответить
@Kasuki85rvr
@Kasuki85rvr - 26.10.2016 19:07

Nice Tut!!!

Ответить
@stijn_..
@stijn_.. - 31.10.2016 18:39

Thanks man, very useful. Not completely noob friendly, but it was fine for me :)

Ответить
@007deetee
@007deetee - 08.11.2016 16:52

Hey i'm getting the following error

ActionView::MissingTemplate in Posts#index
Showing /Users/daveytee/Desktop/portfolio/app/views/layouts/application.html.erb where line #19 raised:

Missing partial shared/_alerts with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :arb, :coffee, :jbuilder]}. Searched in:
* "/Users/daveytee/Desktop/portfolio/app/views"
* "/Users/daveytee/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/activeadmin-78324a83fa01/app/views"
* "/Users/daveytee/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/kaminari-0.17.0/app/views"
* "/Users/daveytee/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/devise-4.2.0/app/views"
Extracted source (around line #19):
17
18
19
20
21
22


<%= render 'shared/header' %>
<%= render 'shared/alerts' %>
<%= yield %>
<%= render 'shared/footer' %>


Rails.root: /Users/daveytee/Desktop/portfolio

Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:19:in `_app_views_layouts_application_html_erb__2204882479571987337_70153578072080'
Request

Parameters:

None
Toggle session dump
Toggle env dump
Response

Headers:

None

My code matches yours so i'm not sure why i'm getting this error?

Ответить
@davidelopez8837
@davidelopez8837 - 16.11.2016 10:58

this is my first tutorial its very useful, but I have a little problem undefined method `image?' for #<Post:0x007ffe940966f0>
Did you mean? images?
images
images=
you will know how to fix it

Ответить
@slake07
@slake07 - 17.11.2016 06:40

thanks bro you really made a good video!

Ответить
@wesleyheadbanger
@wesleyheadbanger - 14.12.2016 20:12

/bundler/dsl.rb:544:in `parse_line_number_from_description': incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) (Encoding::CompatibilityError)

Ответить
@argsts09
@argsts09 - 21.12.2016 12:57

Awesome tutorial, sir!

Ответить
@alienjava532
@alienjava532 - 21.12.2016 23:47

hey guy! for example I have this in my method new. @comments = Comment.all
@comment = Comment.new because in 1 view I wanna show my comments and I wanna create comments too there. all is Fine but when I clicked to add the comment I get this. undefinided method each for nil: NilClass. i can notice that the problem is @products but I need to use it to show the comments "/ what can i do? thanks for all

Ответить
@thenldn
@thenldn - 28.12.2016 19:22

What's the name of that Sublime theme?

Ответить
@camilogonzalez9137
@camilogonzalez9137 - 05.01.2017 22:49

it goes very well thanks for the knowledge bravo!

Ответить
@camilogonzalez9137
@camilogonzalez9137 - 09.01.2017 20:36

Would you help me to know how can i proceed doingthis blog by using react.js?
i´ve install the react gem and then i made bundle install
but the when i put : rails g react:install
comes this error:
You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming.

Ответить
@mrhunterf2869
@mrhunterf2869 - 12.01.2017 23:40

Great tutorial! Thankyou.

Ответить
@nappdaddy2000
@nappdaddy2000 - 27.02.2017 20:10

Sic video bro, some things were a lil over my head as a advanced beginning but i'll watch again to figure it out, thanks for posting

Ответить
@nappdaddy2000
@nappdaddy2000 - 28.02.2017 03:15

im confused by the avatar that we changed to image.. What are they and why did we change them, are they just variables?

Ответить
@jordanlevin8031
@jordanlevin8031 - 02.04.2017 23:11

Can you please reveal what sublime text theme you're using? Looks so clean.

Ответить
@nasreldinnagel9283
@nasreldinnagel9283 - 04.04.2017 07:38

GREAT TUTORIAL THANK YOU!

Ответить
@sand321993
@sand321993 - 06.04.2017 22:28

Hey I successfully built portfolio site. Do you mind make another rails video? I would love to watch about ecommerce + cms in rails

Ответить
@devilking977
@devilking977 - 10.04.2017 09:57

What is The admin Eamil PAssword For your Github project?

Ответить
@fuad7us1
@fuad7us1 - 10.04.2017 17:55

overall a good tutorial but in some cases, not very well explained of the already generated code in that case we just blindly follow you

Ответить
@juliusespanol6813
@juliusespanol6813 - 14.06.2017 19:52

Thank you so much! This helped me a lot!

Ответить
@wordpresswordpresses5237
@wordpresswordpresses5237 - 21.06.2017 09:56

hello

Ответить
@audreyjoanne_
@audreyjoanne_ - 01.07.2017 08:05

I have a problem installing active_admin... does anyone have the same problem? I am using rails 5.0

Ответить
@MistryRajan
@MistryRajan - 04.07.2017 00:49

hi, i received this error when getting to the part with adding the image to the blog post:
Migrations are pending. To resolve this issue, run: bin/rails db:migrate RAILS_ENV=development

I followed the video exactly and am now stuck. Do you know how to fix this?

Ответить
@AndresMenaSimba
@AndresMenaSimba - 03.08.2017 03:18

great video thanks man. are you going to do more tutorials?

Ответить
@dominiccodes3529
@dominiccodes3529 - 03.08.2017 15:58

This is a very well featured app.
Active Admin is a gem I've not come across and adds WordPress like features to your blog managing posts, users and comments. Thanks very much for making this available.

Ответить
@cgpatel2038
@cgpatel2038 - 12.09.2017 07:50

when click on new post then how post redirect to main home or index page?

Ответить
@kristynb8844
@kristynb8844 - 06.10.2017 00:14

In case anyone encounters this error in the future: After generating a migration for the image in post, I ran my migration, but had an error that "Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:"

Super simple fix. Just go to the migration file and add the Rails release number to the end of your migration (you can reference your previous migrations). Looks like:

class AddAttachmentImageToPosts < ActiveRecord::Migration[5.1]

Ответить
@samsavage2961
@samsavage2961 - 13.10.2017 00:09

One screencast closer to being a pro RoR dev.. thanks man..

Ответить
@modolief
@modolief - 01.11.2017 07:26

I like the pacing because it's not beginner level. Good for a review when coming back to Rails after a while.

Ответить
@alexgonzalez3962
@alexgonzalez3962 - 16.11.2017 09:07

Could someone help me, im following the video but im getting an error.
Missing partial shared/_header with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}. Searched in:
* "C:/Sites/port/app/views"


<%= render 'shared/header' %>
<%= render 'shared/alerts' %>
<%= yield %>
<%= render 'shared/footer' %>

any help would be great.
Thanks.

Ответить
@jaepark75
@jaepark75 - 19.12.2017 06:34

open-labs, I'm currently using a virtual environment "vagrant" to build apps. How do I build rails 5 apps without replacing rails 4? Sorry if this is an easy question, I'm still new to this.

Ответить
@sahilmanchanda1000
@sahilmanchanda1000 - 11.01.2018 16:35

I am beginner with ROR, & didn't get sublime text command. please let me know.

Ответить
@kennynagano5579
@kennynagano5579 - 04.02.2018 01:32

my image for the post is huge and idk why. I think I pasted everything related after I tried to do it on my own originally

Ответить
@ClassicCartoonsNL
@ClassicCartoonsNL - 18.03.2018 00:15

The title is confusing.

Ответить
@ake1818
@ake1818 - 19.04.2018 15:30

this voide has taught me a lot,thank you!

Ответить