Create an application with a specific version of rails

Ensure you have the right version installed in your app. Here's an example of how you would install it for version 7.0.4 of Rails

rails _7.0.4_ new appname

Setting up time zones on the client side

Make the following changes in the controller:

  around_action :set_time_zone, if: :current_user

  private
    def set_time_zone(&block)
      Time.use_zone('Quito', &block)
    end

Returning raw HTML from the controller to the view

def some_function
   return '<a>This is an html string</a>
end
Controller Code
<%== some_function %>
View code

Update the bundler version in your Gemfile.lock

bundle update --bundler

Ruby on Rails Tips and Tricks