hi to everyone how to show the params value in page.alert
page.alert(‘Your image has been uploaded sucessfully’
+‘params[:image][:uploaded_data].original_filename’)
hi to everyone how to show the params value in page.alert
page.alert(‘Your image has been uploaded sucessfully’
+‘params[:image][:uploaded_data].original_filename’)
what about:
page.alert(‘Your image has been uploaded sucessfully’ +params[:image]
[:uploaded_data].original_filename)
without the parentheses around the variable
or a bit more Rails like:
page.alert(“Your image has been uploaded sucessfully #{params[:image]
[:uploaded_data].original_filename}”)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs