Dynamic Navigation – DIY Twitter Clone #6.1

[ad_1]
Today, we will begin writing embedded ruby code (ERB) to interact with the Devise gem and determine what type of navigation bar to load for a given user. We will be splitting our existing navigation bar into two separate navigation bars. Finally, we will be requesting the user model of the signed-in user to access various user attributes for displaying inside of the navigation bar.

Download this project’s files at:

——– SUGGESTED READING ——–

“Clean Code” by Robert C. Martin:
“Game Coding Complete” by Mike McShaffry:
“JavaScript and JQuery” by Jon Ducket:

——– ADDITIONAL INFORMATION ——–

Creating, updating and managing DevFactor’s large collection of tutorials requires many hours of work on a weekly basis. If you have found our tutorials useful, please support us by subscribing and sharing our videos on social media.

If you have any feedback in regards to how we could improve the channel’s content, editing, or organization feel free to get in touch and make a suggestion!

Subscribe on YouTube:

——– GENERAL INFORMATION ——–

DevFactor offers high-quality, project based tutorials on web development, game development and software engineering. Simply by subscribing you can gain access to our large library of free programming video tutorials.

DevFactor was started in order to aid anyone regardless of age, race, gender or location to learn how to build, maintain and deploy their own software applications.

#programming #code #devfactor


Posted

in

by

Tags:

Comments

5 responses to “Dynamic Navigation – DIY Twitter Clone #6.1”

  1. attatae Avatar

    I would subscribe but I only want Rails tutorials, I have zero interest in Java at this time. I suggest you make a Rails DevFactor channel, and perhaps even a JS/Node one as well. Thus we can subscribe and only get things we are interested in.

  2. Danan Joyo Avatar

    one question sir, is the ruby snippet code (eg. new_user_registration_path , current_user.email) is the part of the devise function or not ? im kinda confused right there…

  3. Matthew Dirks Avatar

    I keep breaking at the nab bar redirection. I get a syntax error. Its funny because it wants something, first its error on the first call to render nav_guest, said ok restarted web server error on nav_user, I also got it to error on end line I put it all back to the original no redirect it works fine. All other embed code works fine.

  4. qube sauce Avatar

    Nice Video, keep it up 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *