Can anyone have a look this ruby script why it''s not working: <%= if land_area_unit == M2 %>m² <% else %> <%= if land_area_unit == HA %>Ha <% else %><%= if land_area_unit == AC %>Ac<% else %>f² What I want to do is show the right unit for the land area. Thanks! -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8568b9638205933d598bb340982f8bb8%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On 2 December 2013 20:24, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Can anyone have a look this ruby script why it''s not working: > > <%= if land_area_unit == M2 %>m² <% else %> <%= if land_area_unit > == HA %>Ha <% else %><%= if land_area_unit == AC %>Ac<% else %>f²It may be better to do it in the controller anyway, keep the view as simple as possible. In the controller setup @units as appropriate and then just display it in the view. Logic in the view is best avoided wherever possible. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsHn4ow3AznFO%2B0xn2KpZc0OTJtTtMmQiP_cgMQi4pPWw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Hi Colin, Thanks for your advice, but I can''t access to the rails server, only can edit the ruby script. any chance you can check anything wrong with the If statement script? cheers Wayne -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8c951c4796a1beb87e8f069ea009536b%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On 2 December 2013 20:50, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi Colin, Thanks for your advice, > but I can''t access to the rails server, only can edit the ruby script. > any chance you can check anything wrong with the If statement script?What do you mean you only have access to the ruby script? The script you showed is in the view, which runs on the server. I am suggesting that you change it in the controller ruby script instead of the view ruby script. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtmMUSanTGjCd3vfmVtp%2BwgcN_Q%2BgP2Rnujtw7gWjfKMQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
I mean I can''t edit the server, like view controller. I only can edit the html themes, check the attachment for the screen shot sorry, I am a beginner and just want do some maintaining cheers Attachments: http://www.ruby-forum.com/attachment/8998/test.jpg -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d805b898b1717086635109e39289624e%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On 2 December 2013 21:05, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: Please don''t top post, and please quote the previous message. Remember this is a mailing list, not a forum, though you may be accessing it through a forum like interface.> I mean I can''t edit the server, like view controller. > I only can edit the html themes, check the attachment for the screen > shot > sorry, I am a beginner and just want do some maintaining > cheers > > Attachments: > http://www.ruby-forum.com/attachment/8998/test.jpgSorry, I have no idea what theme you are trying to adjust. Presumably you are using some application with configurable themes. I think you had better give us some more information about your environment. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsYm0TSMhvzV5b3OaU0o%2BdDGv_ZZGP5eEKThucKFx99hQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
could you just check why the ruby script not work it work when only use the field name : <%= land_area_unit -%> because the the field display not right, when its sqm, it show M2 I want it show m², that''s why I want to write a if statement to showing the right unit format: <%= if land_area_unit == M2 %>m² <% else %> <%= if land_area_unit == HA %>Ha <% else %><%= if land_area_unit == AC %>Ac<% else %>f² Thanks! -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ed8a1a13a91a7ffd21c1882f00e08695%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On 2 December 2013 21:22, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> could you just check why the ruby script not workWhy should I help when you have not followed my request not to top post and to remember to quote the previous reply?> > it work when only use the field name : <%= land_area_unit -%> > > because the the field display not right, when its sqm, it show M2 I want > it show m², that''s why I want to write a if statement to showing the > right unit format: > > <%= if land_area_unit == M2 %>m² <% else %> <%= if land_area_unit > == HA %>Ha <% else %><%= if land_area_unit == AC %>Ac<% else %>f²There are so many things wrong I don''t know where to start. Have a look at http://www.howtogeek.com/howto/programming/ruby/ruby-if-else-if-command-syntax/. What is ² intended to be? Should it be ² perhaps. What are the variables M2 and H2 set to? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsxvx2D820Pim8C-MgvaERoZ6POieiWbnWR%3DyAYJv-NQA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Colin Law wrote in post #1129260:> On 2 December 2013 21:22, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> could you just check why the ruby script not work > > Why should I help when you have not followed my request not to top > post and to remember to quote the previous reply? > >> >> it work when only use the field name : <%= land_area_unit -%> >> >> because the the field display not right, when its sqm, it show M2 I want >> it show m, that''s why I want to write a if statement to showing the >> right unit format: >> >> <%= if land_area_unit == M2 %>m² <% else %> <%= if land_area_unit >> == HA %>Ha <% else %><%= if land_area_unit == AC %>Ac<% else %>f² > > > There are so many things wrong I don''t know where to start. Have a > look at > http://www.howtogeek.com/howto/programming/ruby/ruby-if-else-if-command-syntax/. > > What is ² intended to be? Should it be ² perhaps. > > What are the variables M2 and H2 set to? > > ColinHi Colin, I do want to do what you request, but as I explain that I can''t edit the server, view controller etc the original code on the themes is: <%= land_area -%><%= land_area_unit -%> it show on website is 1234 M2 what I want to do is change the M2 to m² m² is html to display m² , then I change it to: <%= land_area -%><%= if land_area_unit == M2 %> m² <% else %>Ha Ha is Hectares but its not work, sorry that I can''t do too much following what you request because I don''t know how. and thanks in advance! -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/caf985e7b1ba479be0d5872c2d185462%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On Dec 2, 2013, at 5:16 PM, yinwen Xuan wrote:> Colin Law wrote in post #1129260: >> On 2 December 2013 21:22, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >>> could you just check why the ruby script not work >> >> Why should I help when you have not followed my request not to top >> post and to remember to quote the previous reply? >> >>> >>> it work when only use the field name : <%= land_area_unit -%> >>> >>> because the the field display not right, when its sqm, it show M2 I want >>> it show m, that''s why I want to write a if statement to showing the >>> right unit format: >>> >>> <%= if land_area_unit == M2 %>m² <% else %> <%= if land_area_unit >>> == HA %>Ha <% else %><%= if land_area_unit == AC %>Ac<% else %>f² >> >> >> There are so many things wrong I don''t know where to start. Have a >> look at >> http://www.howtogeek.com/howto/programming/ruby/ruby-if-else-if-command-syntax/. >> >> What is ² intended to be? Should it be ² perhaps. >> >> What are the variables M2 and H2 set to? >> >> Colin > > Hi Colin, > > I do want to do what you request, but as I explain that I can''t edit the > server, view controller etc > the original code on the themes is: > <%= land_area -%><%= land_area_unit -%> > it show on website is 1234 M2 > what I want to do is change the M2 to m² > m² is html to display m² , then I change it to: > > <%= land_area -%><%= if land_area_unit == M2 %> m² <% else %>Ha > > Ha is Hectares > but its not work, sorry that I can''t do too much following what you > request because I don''t know how. > and thanks in advance!If you''re trying to do a comparison, you need to quote the M2, since it will be a string value, not a constant. Also, if you''re doing a comparison (which you don''t want to output any value) then don''t use <%= %> as the container, rather <% %> or <%- %> so as to avoid outputting the result of land_area_unit == ''M2'', which would be ''true'' some of the time. Walter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/41667AFA-B7ED-49F9-8411-CD27C9C2ACE6%40wdstudio.com. For more options, visit https://groups.google.com/groups/opt_out.
Walter Davis wrote in post #1129271:> On Dec 2, 2013, at 5:16 PM, yinwen Xuan wrote: > >>>> because the the field display not right, when its sqm, it show M2 I want >>> >> the original code on the themes is: >> and thanks in advance! > If you''re trying to do a comparison, you need to quote the M2, since it > will be a string value, not a constant. Also, if you''re doing a > comparison (which you don''t want to output any value) then don''t use <%> %> as the container, rather <% %> or <%- %> so as to avoid outputting > the result of land_area_unit == ''M2'', which would be ''true'' some of the > time. > > Walterhi Walter, Thanks for your advcie, so what should I change it to, I just want to display m² instead of M2. cheers -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fabc45ef5f383bac36187381fcf4529b%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Walter Davis wrote in post #1129271:> On Dec 2, 2013, at 5:16 PM, yinwen Xuan wrote: > >>>> because the the field display not right, when its sqm, it show M2 I want >>> >> the original code on the themes is: >> and thanks in advance! > If you''re trying to do a comparison, you need to quote the M2, since it > will be a string value, not a constant. Also, if you''re doing a > comparison (which you don''t want to output any value) then don''t use <%> %> as the container, rather <% %> or <%- %> so as to avoid outputting > the result of land_area_unit == ''M2'', which would be ''true'' some of the > time. > > WalterI tried this: Land Area: <%= land_area %> <%= if land_area_unit == M2 %> m² <% else %> <% end %> but not working -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f357ff60cfa96f4849285867f74dac7e%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On Dec 2, 2013, at 8:33 PM, yinwen Xuan wrote:> Walter Davis wrote in post #1129271: >> On Dec 2, 2013, at 5:16 PM, yinwen Xuan wrote: >> >>>>> because the the field display not right, when its sqm, it show M2 I want >>>> >>> the original code on the themes is: >>> and thanks in advance! >> If you''re trying to do a comparison, you need to quote the M2, since it >> will be a string value, not a constant. Also, if you''re doing a >> comparison (which you don''t want to output any value) then don''t use <%>> %> as the container, rather <% %> or <%- %> so as to avoid outputting >> the result of land_area_unit == ''M2'', which would be ''true'' some of the >> time. >> >> Walter > > I tried this: > > Land Area: <%= land_area %> <%= if land_area_unit == M2 %> m² <% > else %> <% end %> > > but not workingThis is the same code I commented on, I don''t see that you took up any of my suggestions here. Land Area: <%= land_area %> <%- if land_area_unit == ''M2'' %>m²<%- else %><%= land_area_unit %><%- end %> Which could arguably be written a lot more neatly: Land Area: <%= "#{land_area} #{(land_area_unit == ''M2'')? ''m²'' : land_area_unit}".html_safe %> Still quite a mess to have in your view, though. Walter> > -- > 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f357ff60cfa96f4849285867f74dac7e%40ruby-forum.com. > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/275014E5-49C2-417A-B916-F1E21FFD0B89%40wdstudio.com. For more options, visit https://groups.google.com/groups/opt_out.
Walter Davis wrote in post #1129287:> On Dec 2, 2013, at 8:33 PM, yinwen Xuan wrote: > >>> %> as the container, rather <% %> or <%- %> so as to avoid outputting >> but not working > This is the same code I commented on, I don''t see that you took up any > of my suggestions here. > > Land Area: <%= land_area %> <%- if land_area_unit == ''M2'' %>m²<%- > else %><%= land_area_unit %><%- end %> > > Which could arguably be written a lot more neatly: > > Land Area: <%= "#{land_area} #{(land_area_unit == ''M2'')? ''m²'' : > land_area_unit}".html_safe %> > > Still quite a mess to have in your view, though. > > WalterHi Walter, your first script is working!! that''s great!!! since the land unit got three others: AC - Acres HA - Hectares F2 - Sq feet Then I extend your code to the follow, but not working :-( Land Area: <%= land_area %> <%- if land_area_unit == ''M2'' %>m² <%- else %><%- if land_area_unit == ''HA'' %>Ha <%- else %><%- if land_area_unit == ''AC'' %>Ac <%- else %>f²<%- end %> -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/74345adf3dc7290a9665827bd5e18cf6%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On Dec 2, 2013, at 8:03 PM, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Then I extend your code to the follow, but not working :-(How many "if"s? How many "end"s? See the problem? Seriously, you need to work through a tutorial, as suggested earlier, rather than expect the members of this forum to write your code one statement at a time. And when you take the time to work through a tutorial, you''ll learn about "elsif" ;-) -- Scott Ribe scott_ribe-ZCQMRMivIIdUL8GK/JU1Wg@public.gmane.org http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1B30A7D5-0703-4286-860A-332BFC2DF9A0%40elevated-dev.com. For more options, visit https://groups.google.com/groups/opt_out.
> > How many "if"s? How many "end"s? See the problem? > > Seriously, you need to work through a tutorial, as suggested earlier, > rather than expect the members of this forum to write your code one > statement at a time. >Sorry and thanks! I did go through the tutorial and edit my code as this: Land Area: <%= land_area %> <%- if land_area_unit == ''M2'' %>m² <%- elseif land_area_unit == ''HA'' %>Ha <%- elseif land_area_unit == ''AC'' %>Ac <%- else %>sq feet<%- end %> but the result is all showing sq feet, any idea, sorry I don''t know where else I can work it out. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9eff4631fa91debe0ef9aa78cc61803b%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On Dec 2, 2013, at 8:43 PM, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> but the result is all showing sq feet, any idea, sorry I don''t know > where else I can work it out.You''re very close, but spelling matters. Review my prior message to you. -- Scott Ribe scott_ribe-ZCQMRMivIIdUL8GK/JU1Wg@public.gmane.org http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/D01A0C7D-F770-44EE-9797-8B3BBAE17220%40elevated-dev.com. For more options, visit https://groups.google.com/groups/opt_out.
Scott Ribe wrote in post #1129304:> On Dec 2, 2013, at 8:43 PM, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> but the result is all showing sq feet, any idea, sorry I don''t know >> where else I can work it out. > > You''re very close, but spelling matters. Review my prior message to you. > > -- > Scott RibeSorry Scott, All fixed now. you are a good teacher!! let me know if you want student, I am happy to pay tuition ;-) -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1b4fe6be1b7d276ff5b692c9d74d8615%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On Dec 3, 2013, at 6:08 PM, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Sorry Scott, All fixed now. > you are a good teacher!! > let me know if you want student, I am happy to pay tuition ;-)I''m glad it''s working. One last thing, regarding people who told you to move this from view to controller, and your response that you have no access to the files on the server. This file that you are editing is on the server. It is in the same folder hierarchy as the controller. It is very unlikely you have access to this RoR view file but not the RoR controllers or models. -- Scott Ribe scott_ribe-ZCQMRMivIIdUL8GK/JU1Wg@public.gmane.org http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/788705DE-A890-4193-B5FD-762C831657E1%40elevated-dev.com. For more options, visit https://groups.google.com/groups/opt_out.
Scott Ribe wrote in post #1129470:> On Dec 3, 2013, at 6:08 PM, yinwen Xuan <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> Sorry Scott, All fixed now. >> you are a good teacher!! >> let me know if you want student, I am happy to pay tuition ;-) > > I''m glad it''s working. > > One last thing, regarding people who told you to move this from view to > controller, and your response that you have no access to the files on > the server. This file that you are editing is on the server. It is in > the same folder hierarchy as the controller. It is very unlikely you > have access to this RoR view file but not the RoR controllers or models.I actually not quite understand how it set up, it was build by some one else. I can only log in to rails server as administrator and edit and create themes using html and ruby script, I also can create and edit the user, then add them to different themes can you teach me more? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fecc651ac970ed1ed4030a642404ed99%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Rather than asking for small pieces of information one at a time on a forum, you would be much better served by completing a few Rails tutorials and creating some Rails projects on your own computer. Then you will understand what''s happening on the server. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6e1d8c47579a219239059e7c39258736%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.