Hi all I want to display on my page and example of viewer as a regulat text, but after adding it in the design mode in Dreamweaver, whe I open the page in my browser, ot shos nt as text, but it executes the code. here is te example: <html> <head> <title> Hello!!!</title> </head> <body> <%= start_form_tag :controller=>''greet'', :action=>''say_hi'' %> <p>Enter Your Name: <%= text_field_tag :textName, nil, :size=> 20 %> </p><p> <label><%= @message %></label> </p> <p> <%= submit_tag( "Hello") %> </p> <%= end_form_tag %> </body> </html> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Jose Pepe wrote:> Hi all > > I want to display on my page and example of viewer as a regulat text, > but after adding it in the design mode in Dreamweaver, whe I open the > page in my browser, ot shos nt as text, but it executes the code. > > here is te example: > <html> > <head> > <title> Hello!!!</title> > </head> > <body> > <%= start_form_tag :controller=>''greet'', :action=>''say_hi'' %> > <p>Enter Your Name: > <%= text_field_tag :textName, nil, :size=> 20 %> > </p><p> > <label><%= @message %></label> > </p> > <p> > <%= submit_tag( "Hello") %> > </p> > <%= end_form_tag %> > </body> > </html> > > >I''m sorry I''m not sure I understand your question.. do you NOT want the code to execute? Cheers Mohit. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
enclose the html in <pre></pre> tags On 10/8/06, Mohit Sindhwani <mo_mail-RxrYI66vbj0AvxtiuMwx3w@public.gmane.org> wrote:> > > Jose Pepe wrote: > > Hi all > > > > I want to display on my page and example of viewer as a regulat text, > > but after adding it in the design mode in Dreamweaver, whe I open the > > page in my browser, ot shos nt as text, but it executes the code. > > > > here is te example: > > <html> > > <head> > > <title> Hello!!!</title> > > </head> > > <body> > > <%= start_form_tag :controller=>''greet'', :action=>''say_hi'' %> > > <p>Enter Your Name: > > <%= text_field_tag :textName, nil, :size=> 20 %> > > </p><p> > > <label><%= @message %></label> > > </p> > > <p> > > <%= submit_tag( "Hello") %> > > </p> > > <%= end_form_tag %> > > </body> > > </html> > > > > > > > I''m sorry I''m not sure I understand your question.. do you NOT want the > code to execute? > Cheers > Mohit. > > > > > >-- Never be afraid to try something new. Remember, amateurs built the ark; professionals built the Titanic! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Leon, it works fine withe the <pre></pre> tags thanks http://www.jsnit.com/mambo/index.php?option=com_content&task=view&id=52&Itemid=109 Leslie wrote:> enclose the html in <pre></pre> tags > > > On 10/8/06, Mohit Sindhwani <mo_mail-RxrYI66vbj0AvxtiuMwx3w@public.gmane.org> wrote: >> > <html> >> > <p> >> Cheers >> Mohit. >> >> >> >> > >> > > > -- > Never be afraid to try something new. Remember, amateurs built the ark; > professionals built the Titanic!-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---