Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Confusion of where certain data is coming from

controllers views

  • Please log in to reply
1 reply to this topic

#1 GLaD0S

GLaD0S

    Passenger

  • Members
  • 6 posts

Posted 10 April 2014 - 12:43 AM

Hello everyone. I am having a lot of trouble figuring out where some data is coming from in the view. I am pretty new to rails and am working with a open source project that is a very advanced use of rails.

 

<span class="name ellipsis" title="<%= menu_course[:longName] %>"><%= menu_course[:shortName] %></span>

 

Can anyone point me to the concepts for where "menu_course" would be set. This is a menu item that is site wide so I would assume that it would be set in application_controller.rb but I cannot determine if it is. Also doing a search for "menu_course" in the app folder yields nothing that looks like menu_course ever being set with any data. Just looking for some direction. Thanks everyone!



#2 GLaD0S

GLaD0S

    Passenger

  • Members
  • 6 posts

Posted 10 April 2014 - 06:02 PM

Its partial rendering 101. Sorry folks. For other confused, http://api.rubyonrai...alRenderer.html







Also tagged with one or more of these keywords: controllers, views

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users