Forum: Ruby on Rails need help with rjs for captcha? simple for you not for me!

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
633ada55ad6d9831e08a6ae23270baf4?d=identicon&s=25 mixplate (Guest)
on 2007-03-23 03:14
is this correct? my page after the action calls....shows html in my


<div id="captcha_error">
  <%= error_messages_for 'post' %>

<%= form_remote_tag :url => { :action => 'checkcaptcha' }, :html => {
:id => 'post_form' } %>
<%= show_simple_captcha(:image_style => 'simply_blue',
  :label => 'To view contact information, type the content and submit')
<%= hidden_field 'content', 'recid', :value =>  %>
<%= submit_tag "Submit"%>
<%= end_form_tag %>

  if simple_captcha_valid?

  render "details/checkcaptcha", :layout => "layouts/article"

  logger.debug "success here!"
  page.visual_effect :fade, 'post_form', :duration => 0.5
  page.hide 'captcha_error'
  page.replace_html 'captcha_error', 'Post Created'
  page.visual_effect :appear, 'captcha_error', :duration => 0.5
  page.form.reset 'post_form'


i think my problem may have something to do with the location of my
files? i think my rails app expects my .rjs and details page to be both
in the controller folder. but i currently have my details rhtml in a
details folder outside the controller view folder. is this bad?

thanks for any help!
633ada55ad6d9831e08a6ae23270baf4?d=identicon&s=25 mixplate (Guest)
on 2007-03-23 04:17
nevermind, found the problemo! since i was using a different layout to
render...i forgot to add the javascript in the new layout!...
This topic is locked and can not be replied to.