Ruby on Rails

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentRuby on Rails

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old January 28th, 2018, 11:41 PM
BrandonM222 BrandonM222 is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Jan 2018
Posts: 0 BrandonM222 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 52 sec
Reputation Power: 0
Undefined method `each_with_index' for nil:NilClass

Hi there,

I am kind of new at this. I am trying to merge two apps together and add messeging to my program. However, after following both tutorials I am stuck. And get this error: undefined method `each_with_index' for nil:NilClass on here:

Code:
</div>
  <div class="col-lg-3">
    <%= render 'shared/links' %>
  </div>
<% @users.each_with_index do |index| %>
    <tr>
      <td><%= index +=1 %></td>
      <td><%= user.name %></td>
      <td>
        <%= link_to "Send Message", "#", class: "btn btn-success btn-xs start-conversation",
Again I am new to ruby on rails so I don't know exactly what data you need to know what my error would be.

I am using Rails 5 and Ruby 2.5.0

Here are the two tutorials:

http://josephndungu.com/tutorials/gmail-like-chat-application-in-ruby-on-rails

https://github.com/scaffeinate/socify

The social media part works no problem but the chat part doesn't

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentRuby on Rails > Undefined method `each_with_index' for nil:NilClass


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap