Newbie to Ruby, working on examples Agile Development with Rails2. <ul> <li>Addition: <%= 1+2 %> </li> <li>Concatenation: <%= "cow" + "boy" %> </li> 1.hour.from_now <li>Time in one hour: <%= 1.hour.from_now %> </li> this code simplly prints like this Addition: Concatenation: 1.hour.from_now Time in one hour: dynamic code is not displayed. I don''t understand what was the problem. I restarted the server for serverl times, but no use. Please help -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
I just ran your code snip and it worked fine for me. What is the name of the your view? On Wed, May 7, 2008 at 10:38 AM, Vijay Rayudu < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Newbie to Ruby, working on examples Agile Development with Rails2. > > <ul> > <li>Addition: <%= 1+2 %> </li> > <li>Concatenation: <%= "cow" + "boy" %> </li> 1.hour.from_now > <li>Time in one hour: <%= 1.hour.from_now %> </li> > > this code simplly prints like this > > Addition: > Concatenation: 1.hour.from_now > Time in one hour: > > dynamic code is not displayed. I don''t understand what was the problem. > > I restarted the server for serverl times, but no use. > > Please help > -- > Posted via http://www.ruby-forum.com/. > > > >-- James Mitchell --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
James, name of my view is hello.rhtml. James Mitchell wrote:> I just ran your code snip and it worked fine for me. What is the name > of > the your view? > > On Wed, May 7, 2008 at 10:38 AM, Vijay Rayudu < > rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > >> Addition: >> >> > >> > > > -- > James Mitchell-- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Any one got this problem ? -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Please paste your code exactly how you have it. I''m thinking the 1st and 3rd don''t have the = with them. On Thu, May 8, 2008 at 3:47 PM, Vijay Rayudu < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Any one got this problem ? > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Ryan, Below is the code: <li>Addition: <%= 1+2 %> </li> <li>Concatenation: <%= "cow" + "boy" %> </li> <li>Time in one hour: <%= 1.hour.from_now %> </li> and the out put is simply puts the static content. . Addition: . Concatenation: . Time in one hour: Regards, Vijay -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Before you said the second one worked, and now you said it hasn''t. Which is it? --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Ryan, My hello.rhtml code is like this. <li>Addition: <%= 1+2 %> </li> <li>Concatenation: <%= "cow" + "boy" %> </li> <li>Time in one hour: <%= 1.hour.from_now %> </li> and the controller class is say_controller.rb class SayController < ApplicationController def hello end end and if i try to execute the code in using this URL http://localhost:3000/say/hello the output of the code is Addition: Concatenation: 1.hour.from_now Time in one hour: Why it is not executing the scriptlet code. -Vijay -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
On May 8, 2008, at 12:58 AM, Vijay Rayudu wrote:> > Hi Ryan, > > My hello.rhtml code is like this. > > <li>Addition: <%= 1+2 %> </li> > <li>Concatenation: <%= "cow" + "boy" %> </li> > <li>Time in one hour: <%= 1.hour.from_now %> </li> > > and the controller class is say_controller.rb > > class SayController < ApplicationController > def hello > end > end > > and if i try to execute the code in using this URL > > http://localhost:3000/say/hello > > the output of the code is > > Addition: > Concatenation: 1.hour.from_now > Time in one hour: > > Why it is not executing the scriptlet code. > > -VijayVijay, It looks like you are typing things in the email. You should copy and paste everything, because you are making transcription errors in preparing the emails. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
On May 8, 2008, at 12:58 AM, Vijay Rayudu wrote:> > > the output of the code is > > Addition: > Concatenation: 1.hour.from_now > Time in one hour: > > Why it is not executing the scriptlet code.Also, do a "view source" in the browser and paste that. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Hi George Bailey, Sorry i did not get what are you saying? Can you briefly tell what was my mistake, Just started Rails so kindly answer my stupid questions. Thanks in advance, Vijay. -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Hello, try with out <li> tag regards sumesh On 5/8/08, George Bailey <listcatcher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > On May 8, 2008, at 12:58 AM, Vijay Rayudu wrote: > > > > > Hi Ryan, > > > > My hello.rhtml code is like this. > > > > <li>Addition: <%= 1+2 %> </li> > > <li>Concatenation: <%= "cow" + "boy" %> </li> > > <li>Time in one hour: <%= 1.hour.from_now %> </li> > > > > and the controller class is say_controller.rb > > > > class SayController < ApplicationController > > def hello > > end > > end > > > > and if i try to execute the code in using this URL > > > > http://localhost:3000/say/hello > > > > the output of the code is > > > > Addition: > > Concatenation: 1.hour.from_now > > Time in one hour: > > > > Why it is not executing the scriptlet code. > > > > -Vijay > > > Vijay, > It looks like you are typing things in the email. You should copy and > paste everything, because you are making transcription errors in > preparing the emails. > > > > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Hi George Bailey, Here is my view source code from IE 6.0 <ul> <li>Addition: <%= 1+2 %> </li> <li>Concatenation: <%= "cow" + "boy" %> </li> 1.hour.from_now <li>Time in one hour: <%= 1.hour.from_now %> </li> -Vijay. -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Sumesh, Tried with the below code Addition: <%= 1+2 %> Concatenation: <%= "cow" + "boy" %> Time in one hour: <%= 1.hour.from_now %> output is Addition: Concatenation: Time in one hour: Vijay. -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
All, Anyone having the similar issue. Vijay -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
I WAS ABLE TO SEE THE VIEW SOUCE COD AS Addition: <%= 1+2 %> Concatenation: <%= "cow" + "boy" %> Time in one hour: <%= 1.hour.from_now %> BUT THE output is Addition: Concatenation: Time in one hour: Any one got this kind of issue. -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
it''s working now, i have just created another view, it''s working fine. Thanks one and all... -- 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?hl=en -~----------~----~----~----~------~----~------~--~---