Skip to content
231WebDev
  • Projects
  • Articles
  • Contact

if statements

If statement to show content in Ruby on Rails

February 7, 2020April 12, 2017 by jeremygradisher@gmail.com

If statement in Ruby on Rails Here is an example of the a way to do a simple if statement in ruby on rails to show content according to user level. In this application I am using Devise which allows for that current_user and user level checks. The if statement here, in simple terms says … Read more

Categories Ruby on Rails, Web Dev Tags if statements, ruby, Ruby on Rails

Recent Posts

  • How to setup a Welcome Email after user confirmation
  • Adding the Pundit Gem
  • Adding Ahoy gem for first-party Analytics
  • Add Confirmable to Devise
  • http Basic authentication for Ruby on Rails
  • Simple User Authentication for Ruby on Rails 7
  • Using ChatGPT to Refactor Code
  • Adding React to a Website
  • Remove WP Branding WordPress Plugin
  • Interactive Mapping with Leaflet.js
231 Web Development © 2025
about | privacy policy
back to top ^