# Newbie question

**URL:** <https://www.ruby-forum.com/t/newbie-question/151725>\
**Category:** Rails\
**Created:** [October 24, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/newbie-question/151725 "2008-10-24T21:04:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Post date:** [October 24, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/newbie-question/151725/1 "2008-10-24T21:04:11Z")

</div>

Hi.

I have a simple question. Looks like it’s something basic.

I have 2 elements: a form with a textfield and a link (father), and a  
panel with a link that includes a value inside (child). Here’s how my  
analogy works:

- First you click on the link of the “father” to make the “child”  
appear (with an “Effect.Appear” command).
- Then you click on the link, and two processes are done here:

> The value is passed to the textfield.  
> The “child” dissapears (with an “Effect.Fade” command)

To tell you the truth, I have made and example code of the view  
(without the value transfer to the textfield):

#index.html.erb:  
\<% form\_tag :action =\> ‘access’ do %\>

Username: \<%= text\_field 'user', 'username' %\>

Password: \<%= text\_field 'user', 'passwordkey' %\>

\<%= submit\_tag "Enter" %\> \<% end %\>

\<%= link\_to\_function("User missing?", "Effect.Appear('search'); return false;") %\>

User search:

\<%= link\_to\_function("My User", "Effect.Fade('search'); return false;") %\>

Can you tell me what’s missing or wrong? I would like to know, because  
I’m beginning with Rails 2.1.

BTW, I’m using [scrpit.aculo.us](http://scrpit.aculo.us) for this example to make it feel alive!

Greetings…

The N…
