title: How to insert ip address in active admin?
body: <p>I have a model called booking and I am using active admin plugin as a resource management. I have a form called booking in the backend in which I need to insert ip address and username of the currently logged in user(who insert the form data)  to the database without making any input field in backend. Please suggest. I am using mysql as database platform.</p>
  
  <p>here is my controller syntax</p>
  
  <pre><code>class CustomizedBookingsController &lt; ApplicationController
  def create
  customized_booking = CustomizedBooking.new(params[:customized_booking])
  customized_booking.booked_by = current_admin_user
  customized_booking.booking_ip = request.remote_ip
  end
  end
  </code></pre>
  
  <p>I tried lots but still not working.</p>