Hi, Can someone tell me how to manage the content in Admin panel? I have to implement Content Management System in the admin panel.... but not getting any idea of how to implement it. Any help would be greatly appreciated. Thanks, Ruchita Sharma. -- 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 -~----------~----~----~----~------~----~------~--~---
Ruchita Sharma wrote:> Hi, > > > Can someone tell me how to manage the content in Admin panel? I have to > implement Content Management System in the admin panel.... but not > getting any idea of how to implement it. > > > Any help would be greatly appreciated. > > Thanks, > Ruchita Sharma. >What admin panel? If you''re looking for content management, there are a few CMS solutions implemented in Rails. Radiant is one and you can find a number more if you search the archives for this group/ mailing list. Cheers, Mohit. 11/5/2007 | 9:21 PM. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mohit Sindhwani wrote:> Ruchita Sharma wrote: >> Thanks, >> Ruchita Sharma. >> > > What admin panel? If you''re looking for content management, there are a > few CMS solutions implemented in Rails. Radiant is one and you can find > a number more if you search the archives for this group/ mailing list. > > Cheers, > Mohit. > 11/5/2007 | 9:21 PM.yeah i have looked Radiant.... but not able to work it properly coz the link that i am following does not give the exact description of how to use it. I have also tried admin_pages_engine but again not able to implement it properly. Can you tell me some other option??? -- 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 -~----------~----~----~----~------~----~------~--~---
Ruchita Sharma wrote:> Mohit Sindhwani wrote: > >> Ruchita Sharma wrote: >> >>> Thanks, >>> Ruchita Sharma. >>> >>> >> What admin panel? If you''re looking for content management, there are a >> few CMS solutions implemented in Rails. Radiant is one and you can find >> a number more if you search the archives for this group/ mailing list. >> >> Cheers, >> Mohit. >> 11/5/2007 | 9:21 PM. >> > > yeah i have looked Radiant.... but not able to work it properly coz the > link that i am following does not give the exact description of how to > use it. I have also tried admin_pages_engine but again not able to > implement it properly. Can you tell me some other option??? >What do you mean that Radiant is not able to work properly? It seems to work absolutely fine for a couple of sites that I''m managing. The documentation site on the Radiant site includes links to a few tutorials that should help you get started. Of course, a lot depends on what you want to do and what is required of the site that you''re designing. I don''t think anyone can give you an option if you''re not clear (and don''t tell us) what needs to be implemented. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mohit Sindhwani wrote:> Ruchita Sharma wrote: >>> a number more if you search the archives for this group/ mailing list. >> > What do you mean that Radiant is not able to work properly? It seems to > work absolutely fine for a couple of sites that I''m managing. The > documentation site on the Radiant site includes links to a few tutorials > that should help you get started. > > Of course, a lot depends on what you want to do and what is required of > the site that you''re designing. I don''t think anyone can give you an > option if you''re not clear (and don''t tell us) what needs to be > implemented.Hi... I am using this link "http://www.radiantcms.org/download/" U can check that in this link when we click on install instructions it gives an error. So I am not able to do the exact implementation. -- 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 -~----------~----~----~----~------~----~------~--~---
Ruchita Sharma wrote:> Mohit Sindhwani wrote: > >> Ruchita Sharma wrote: >> >>>> a number more if you search the archives for this group/ mailing list. >>>> >>> >>> >> What do you mean that Radiant is not able to work properly? It seems to >> work absolutely fine for a couple of sites that I''m managing. The >> documentation site on the Radiant site includes links to a few tutorials >> that should help you get started. >> >> Of course, a lot depends on what you want to do and what is required of >> the site that you''re designing. I don''t think anyone can give you an >> option if you''re not clear (and don''t tell us) what needs to be >> implemented. >> > > Hi... > > I am using this link "http://www.radiantcms.org/download/" U can check > that in this link when we click on install instructions it gives an > error. So I am not able to do the exact implementation. >The documentation is being migrated to another wiki. You can find all the documentation for Radiant on the documentation site: http://wiki.radiantcms.org/Documentation Installation: http://wiki.radiantcms.org/Installation Also, there are how-to articles and also tutorials. Just start at the documentation page. Cheers, Mohit. 11/5/2007 | 9:46 PM. --~--~---------~--~----~------------~-------~--~----~ 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 Ruchita Good Morning Did you get any soln? -- 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 -~----------~----~----~----~------~----~------~--~---
Hi Ruchita there are other cms other than radiant . They are Mephisto,typo3 ,... Here are some links how to install radiant cms ->http://kb.mediatemple.net/article.php?id=152 deploying mephisto cms -> https://support.railsmachine.com/index.php?pg=kb.page&id=13 http://mephisto.stikipad.com/help/ typo3->http://typo3.com/ http://typo3.blinklist.com/ cms tutorial -> http://www.rubyonrailscamp.com/Rails+CMS+Tutorial http://www.rubymatters.com/ruby-cms.shtml -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> > Hi Ruchita > there are other cms other than radiant . They are > > Mephisto,typo3 ,... > Here are some links > > how to install radiant cms > ->http://kb.mediatemple.net/article.php?id=152 > deploying mephisto cms -> > https://support.railsmachine.com/index.php?pg=kb.page&id=13 > http://mephisto.stikipad.com/help/ > typo3->http://typo3.com/ > http://typo3.blinklist.com/ > cms tutorial -> http://www.rubyonrailscamp.com/Rails+CMS+Tutorial > http://www.rubymatters.com/ruby-cms.shtmlhi Abhimanyu, Good Morning. Didn''t get any soln yet. Wud try the links and let you know. -- 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 -~----------~----~----~----~------~----~------~--~---
Hi How is going -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Hi > How is goingHi....Actually now am trying to implement CMS with fckeditor abut facing a little difficulty. Have u ever used fckeditor with rails?? -- 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 -~----------~----~----~----~------~----~------~--~---
Hi Sorry I havent used it till now. But I have heard of it as been used to write html and other things. But are you using it as ide. I am using aptana as ide -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Hi > Sorry I havent used it till now. But I have heard of it as been used to > write html and other things. > But are you using it as ide. I am using aptana as ideWats aptana? Are you using it for content management??? -- 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 -~----------~----~----~----~------~----~------~--~---
Aptana is an ide used for ror. I am using it for a project not sure whether its cms -- 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 -~----------~----~----~----~------~----~------~--~---
Ok Bye for today.You can also mail me I will check tomorrow if you need my help Bye -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Ok Bye for today.You can also mail me I will check tomorrow if you need > my help > > Byeyeah sure..... bbye -- 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 -~----------~----~----~----~------~----~------~--~---
Hi Ruchita Aptana Radrails is an IDE for Rails Project Management and more... However, AFAIK, it s not a CMS :-) CCH http://cch4rails.blogspot.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 -~----------~----~----~----~------~----~------~--~---
CCH wrote:> Hi Ruchita > > Aptana Radrails is an IDE for Rails Project Management and more... > However, AFAIK, it s not a CMS :-) > > CCH > http://cch4rails.blogspot.comCan you tell me how to use FckEditor for CMS? -- 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 -~----------~----~----~----~------~----~------~--~---
Hi Good Morning Have you check these http://www.webmasterworld.com/content_management/3351469.htm http://www.megite.com/url/:www_onlamp_com/pub/a/onlamp/2006/04/20/from-weblog-to-cms.html http://joshuamcharles.com/xhtml/fckrails.php Third one is a popular link Do you have deepavali holiday -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Hi > > Good Morning > Have you check these > > http://www.webmasterworld.com/content_management/3351469.htm > > http://www.megite.com/url/:www_onlamp_com/pub/a/onlamp/2006/04/20/from-weblog-to-cms.html > http://joshuamcharles.com/xhtml/fckrails.php > > Third one is a popular link > > Do you have deepavali holidayGood Morning, Let me try these links.... wud let u know. Yes we have holidays on friday,sat and sunday. -- 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 -~----------~----~----~----~------~----~------~--~---
Ruchita Sharma wrote:> Abhi Manyu wrote: >> Hi >> >> Good Morning >> Have you check these >> >> http://www.webmasterworld.com/content_management/3351469.htm >> >> http://www.megite.com/url/:www_onlamp_com/pub/a/onlamp/2006/04/20/from-weblog-to-cms.html >> http://joshuamcharles.com/xhtml/fckrails.php >> >> Third one is a popular link >> >> Do you have deepavali holiday > > Good Morning, > > > Let me try these links.... wud let u know. Yes we have holidays on > friday,sat and sunday.Hi Abhimanyu, I have implemented it with fckeditor by saving saving in the database. Tell me one thing how can we create a activate or deactivate button in rails. -- 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 -~----------~----~----~----~------~----~------~--~---
Hi Ruchita this is a code that I got . this is to hide a text box.try this for button <input type=text id=text1> <input type=button value=hide onclick=hide()> <input type=button value=show onclick=show()> <script type=text/javascript> function hide(){ document.getElementById(''text1'').style.visibility=''hidden''; } function show(){ document.getElementById(''text1'').style.visibility=''visible''; } </script> -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Hi Ruchita > > this is a code that I got . this is to hide a text box.try this for > button > <input type=text id=text1> > <input type=button value=hide onclick=hide()> > <input type=button value=show onclick=show()> > <script type=text/javascript> > function hide(){ > document.getElementById(''text1'').style.visibility=''hidden''; > } > function show(){ > document.getElementById(''text1'').style.visibility=''visible''; > } > </script>Thanks for that Abhimanyu. But I mean to say that.... how can we implement the functionality that on clicking of a button admin can activate or deactivate the status of a user. I have to implement the functionality where the list of users is coming and the admin can activate or deactivate the status of a user. -- 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 -~----------~----~----~----~------~----~------~--~---
Have a button in the view and in the admin controller/action try the following code User.update(params[id].to_i, :status => "inactive") User ->table containing list of users -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Have a button in the view and in the admin controller/action try the > following code > User.update(params[id].to_i, :status => "inactive") > > User ->table containing list of usersHi, Thanks a lot Abhimanyu. Its 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 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 Ruchita I am very much happy for you. By the way Happy Deepavali I dont have a holiday -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Hi Ruchita > > I am very much happy for you. > By the way Happy Deepavali > I dont have a holidayThanks a lot. Why you dont have a holiday on Diwali?? That''s sad :( Happy Diwali to you too.... -- 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 -~----------~----~----~----~------~----~------~--~---
Hi Ruchita Which IDE are you using. Are you a fresher in IT -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Hi Ruchita > > Which IDE are you using. Are you a fresher in ITAm not working on any IDE. Using Jedit as an editor. I have an experience of approximatly 1 year in IT but in Ruby around 5 months. -- 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 -~----------~----~----~----~------~----~------~--~---
Does jEdit provides intellisense. what are its features and what is its interface(console or gui)? -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Does jEdit provides intellisense. what are its features and what is its > interface(console or gui)?yeah jEdit provides intellisense. Its interface is gui. On which project u r workin? -- 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 am working on hospital management type project. Before 5 months on which technology were you 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 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 -~----------~----~----~----~------~----~------~--~---
OK Bye for today -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> OK Bye for todayOkie bbye. -- 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 -~----------~----~----~----~------~----~------~--~---
Hi Good Morning How are you today. Whats the new task for you? -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Hi Good Morning > > How are you today. Whats the new task for you?Good Morning. Well I have to implement the functionality to display thumbnail images that I told you. -- 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 -~----------~----~----~----~------~----~------~--~---
Oh Ok I have send you a mail. Did you get any solutions for the task? On which technology were you working before 5 months? -- 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 -~----------~----~----~----~------~----~------~--~---
Hi Okay then have a great and happy holidays -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Hi > Okay then have a great and happy holidaysI have uploaded the image in two sizes thumbnail and inline but am not able to display the thumbnail image..... trying for that. Wud let u knw.... -- 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 -~----------~----~----~----~------~----~------~--~---
okay All the Best tell me if you need my 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> okay All the Best > > tell me if you need my helpyeah i need your help. I really dont knw how to display the thumbnail image. I am saving the images in the temp folder and now am not able to display the thumbnail image. -- 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 -~----------~----~----~----~------~----~------~--~---
Ruchita Sharma wrote:> Abhi Manyu wrote: > >> okay All the Best >> >> tell me if you need my help >> > > yeah i need your help. I really dont knw how to display the thumbnail > image. I am saving the images in the temp folder and now am not able to > display the thumbnail image. >Why don''t you use something like file_column or attachment_fu? There''s plenty of stuff on the internet on how to use file_column for uploading images, creating thumbnails (you don''t need to upload a separate thumbnail) and displaying it all. Take a look at the main home page for file_column - the code is there: http://www.kanthak.net/opensource/file_column/ This shows how to display thumbnails: http://wiki.rubyonrails.org/rails/pages/HowToUseFileColumn Regards 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?hl=en -~----------~----~----~----~------~----~------~--~---
I usually store images in public\images folder.rails will automatically take the image from there However let me see if there is another way. I will check and will send you asap -- 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 -~----------~----~----~----~------~----~------~--~---
are you using instant rails? it gives a better folder structure -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> are you using instant rails? > it gives a better folder structureNo am not using dt. -- 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 -~----------~----~----~----~------~----~------~--~---
controller, models, helpers and views are in a folder called apps Like that there is a folder called public where images are stored in images foldr -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> controller, models, helpers and views are in a folder called apps > Like that there is a folder called public where images are stored in > images foldr >That''s not because of InstantRails - that''s the convention that Rails follows. Cheers, Mohit. 11/8/2007 | 4:39 PM. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
so try storing the images in images folder and you just have to call the names -- 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 -~----------~----~----~----~------~----~------~--~---
tell me whether you saw the public/images folder -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> tell me whether you saw the public/images folderHi... yes i have that folder. But I have defined the path in my upload model. FILE_STORE_PATH = File.join(File.dirname(__FILE__), ''/../temp/''). So images are saved in temp folder. -- 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 -~----------~----~----~----~------~----~------~--~---
Thing is if sometimes the path is outside the project folder structure it wont accept . This case is not only for ror but also for other technologies also. Let me check and I will notify you asap -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Thing is if sometimes the path is outside the project folder structure > it wont accept . This case is not only for ror but also for other > technologies also. Let me check and I will notify you asappath is obviously inside the project folder. Its in app folder. -- 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 -~----------~----~----~----~------~----~------~--~---
so did you created that temp folder what i mean as resources folder in .net here it is public/images folder which is the default so try that here In the following link path is given in diff way I think http://blog.airbladesoftware.com/2007/6/20/how-to-store-thumbnails-and-full-size-images-in-different-directories-with-attachment_fu -- 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 -~----------~----~----~----~------~----~------~--~---
Why don''t you take this discussion off-list, or concentrate it to fewer but longer post? This sort of ping-pong of short messages is not really helpful to a wider audience. 8 nov 2007 kl. 10.35 skrev Abhi Manyu:> > so did you created that temp folder > what i mean as resources folder in .net here it is public/images > folder > which is the default so try that > here In the following link path is given in diff way I think > > http://blog.airbladesoftware.com/2007/6/20/how-to-store-thumbnails-and-full-size-images-in-different-directories-with-attachment_fu > > -- > 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 -~----------~----~----~----~------~----~------~--~---
Hi check this site . this is also good for reference as well as learning http://www.tutorialspoint.com/ruby-on-rails/rails-directory-structure.htm -- 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 -~----------~----~----~----~------~----~------~--~---
also give a serach to this forum itself you may get some idea like this one http://www.ruby-forum.com/topic/129946#new -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> also give a serach to this forum itself you may get some idea > like this one > http://www.ruby-forum.com/topic/129946#newCan anybdy help me out? I am using the following tutorails for image uploading and displaying: http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent But i am getting the error SystemExit in AssetsController#new exit -- 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 Nov 8, 10:38 am, Peter Bengtson <pe...-7KpGIyJoDGqUry1sbql4ngC/G2K4zDHf@public.gmane.org> wrote:> Why don''t you take this discussion off-list, or concentrate it to > fewer but longer post? This sort of ping-pong of short messages is not > really helpful to a wider audience.I must agree with Peter. First, half of this thread is personal conversation between Abhi and Ruchita and should be taken off this list. Second, the Rails-related talk is beginning to look more like chat. You guys should try using IRC and join #rubyonrails on freenode. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mislav Marohni�? wrote:> On Nov 8, 10:38 am, Peter Bengtson <pe...-7KpGIyJoDGqUry1sbql4ngC/G2K4zDHf@public.gmane.org> wrote: >> Why don''t you take this discussion off-list, or concentrate it to >> fewer but longer post? This sort of ping-pong of short messages is not >> really helpful to a wider audience. > > I must agree with Peter. First, half of this thread is personal > conversation between Abhi and Ruchita and should be taken off this > list. Second, the Rails-related talk is beginning to look more like > chat. You guys should try using IRC and join #rubyonrails on freenode.Hi, I need to select the last row from the database. For that am writing the code: @sorter = SortingHelper::Sorter.new self, %w(id), params[:id], ''id'', ''DESC'' sort_by = params[:sort] @content = Content.find :all, :order => sort_by, :limit => 1 but this coding is returning the value (#). Can anyone tell me where i am wrong? Any help would be greatly appreciated. Thanks, Ruchita -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
try this @content = Content.find (:all,:order => ''nameof the column DESC'') eg if name of column is "name" @content = Content.find (:all,:order => ''name DESC'') -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> try this > > @content = Content.find (:all,:order => ''nameof the column DESC'') > eg > if name of column is "name" > @content = Content.find (:all,:order => ''name DESC'')Thanks a lot. It worked. -- 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 -~----------~----~----~----~------~----~------~--~---
Ruchita Sharma wrote:> Abhi Manyu wrote: >> try this >> >> @content = Content.find (:all,:order => ''nameof the column DESC'') >> eg >> if name of column is "name" >> @content = Content.find (:all,:order => ''name DESC'') > > Thanks a lot. It worked.Hi Abhimanyu, I am implementing the functionality where i have to display the products details as per user id. I have three tables users table, orders table and line_items table. The fields are: users table: id,first_name and so on. orders table: id, user_id, first_name and so on. line_items table: id, order_id, product_id, quantity and so on. Now from these tables i have to display the product_id, quantity..... as per user id. Please tell me how to implement this. -- 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 -~----------~----~----~----~------~----~------~--~---
one way is to write the like @order = Order.find_by_user_id("userid")->fill the "userid" @product = Line_items.find_by_order_id("orderid")-fill the "orderid" if there are more than one orders then @product=Array.new @orders = Order.find_by_user_id("userid")->fill the "userid" @orders.each do |order| @var = Line_items.find_by_order_id(order) @product << @var end @product will have all the products that the user have ordered -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> one way is to write the like > @order = Order.find_by_user_id("userid")->fill the "userid" > > @product = Line_items.find_by_order_id("orderid")-fill the "orderid" > if there are more than one orders then > > @product=Array.new > @orders = Order.find_by_user_id("userid")->fill the "userid" > @orders.each do |order| > @var = Line_items.find_by_order_id(order) > @product << @var > end > > @product will have all the products that the user have orderedit is throwing an error: NoMethodError in UserController#search undefined method `each'' for #<Order:0x4723338> -- 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 send me the code -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> please send me the codeLet me clear my reqt once again. I have three tables users, orders and line_items. Orders table have user_id and line_items have order_id. Now the following code is giving error: uninitialized constant UserController::Line_items def search @orders = Order.find :all session[:query] = params[:query].strip if params[:query] if session[:query] and request.xhr? @users = User.find(:all, :conditions => ["first_name LIKE ?", "%#{session[:query]}%"], :order => "first_name ASC") @product=Array.new @users.each do |user| @orders.each do |order| if user.id == order.user_id @id = order.id @var = Line_items.find_by_order_id(@id) @product << @var render_text "a" else render_text "abc" end end end 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 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 13 Nov 2007, at 11:38, Ruchita Sharma wrote:> > Abhi Manyu wrote: >> please send me the code > > Let me clear my reqt once again. I have three tables users, orders and > line_items. Orders table have user_id and line_items have order_id. > Now the following code is giving error: > uninitialized constant UserController::Line_items > > def search > @orders = Order.find :allthis is horribly inefficient> > session[:query] = params[:query].strip if params[:query] > if session[:query] and request.xhr? > @users = User.find(:all, :conditions => ["first_name LIKE ?", > "%#{session[:query]}%"], :order => "first_name ASC") > @product=Array.new > @users.each do |user| > @orders.each do |order| > if user.id == order.user_id > @id = order.id > @var = Line_items.find_by_order_id(@id)find_by_x is like a find :first. You probably want find_all_by_x The class name is LineItem (if you''re adhering to the usual conventions). If you''ve defined your relationships properly, you could do something along the lines of @product = @users.collect {|u| u.orders.collect(&:line_items)}.flatten (eager loading those associations might be a good idea) You seem to be stumbling over some really basic rails stuff. Find a good book on rails and read and understand it. AWDWR is a popular favourite, and there''s a book you can get for free at http://www.sitepoint.com/books/rails1/freebook.php Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
there are associations between all these tables rt? . also you alsop want to have all the products of a particular user rt? please let me know and if possible send the whole error code -- 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 -~----------~----~----~----~------~----~------~--~---
Hi check whether Line_items is the class name -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Hi check whether Line_items is the class nameI have defined all the associations. In line_item model i have defined belongs_to :order and in order model I have defined belongs_to :user. The error is: NameError in UserController#search uninitialized constant UserController::Line_items RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.3/lib/active_support/dependencies.rb:477:in `const_missing'' C:/rails/herbaltea/app/controllers/user_controller.rb:88:in `search'' C:/rails/herbaltea/app/controllers/user_controller.rb:85:in `each'' C:/rails/herbaltea/app/controllers/user_controller.rb:85:in `search'' C:/rails/herbaltea/app/controllers/user_controller.rb:84:in `each'' C:/rails/herbaltea/app/controllers/user_controller.rb:84:in `search'' -- 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 -~----------~----~----~----~------~----~------~--~---
Did u check the class name is it Line_items itself or LineItems or Line_Items. Mean while I will check if there is any other errror . do let me know -- 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 13 Nov 2007, at 12:04, Ruchita Sharma wrote:> > Abhi Manyu wrote: >> Hi check whether Line_items is the class name > > I have defined all the associations. In line_item model i have defined > belongs_to :order and in order model I have defined belongs_to :user. > The error is: > > NameError in UserController#search >Like I said before, if you are adhering to the conventions, the class name is LineItem, not line_item or Line_item or Line_items Fred> uninitialized constant UserController::Line_items > > RAILS_ROOT: ./script/../config/.. > Application Trace | Framework Trace | Full Trace > > C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.3/lib/ > active_support/dependencies.rb:477:in > `const_missing'' > C:/rails/herbaltea/app/controllers/user_controller.rb:88:in `search'' > C:/rails/herbaltea/app/controllers/user_controller.rb:85:in `each'' > C:/rails/herbaltea/app/controllers/user_controller.rb:85:in `search'' > C:/rails/herbaltea/app/controllers/user_controller.rb:84:in `each'' > C:/rails/herbaltea/app/controllers/user_controller.rb:84:in `search'' > > -- > 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 13 Nov 2007, at 12:04, Ruchita Sharma wrote: > >> >> Abhi Manyu wrote: >>> Hi check whether Line_items is the class name >> >> I have defined all the associations. In line_item model i have defined >> belongs_to :order and in order model I have defined belongs_to :user. >> The error is: >> >> NameError in UserController#search >> > Like I said before, if you are adhering to the conventions, the class > name is LineItem, not line_item or Line_item or Line_items > > FredSorry the class name is LineItem. class LineItem < ActiveRecord::Base belongs_to :order end Even then it is throwing the same error. -- 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 -~----------~----~----~----~------~----~------~--~---
ok now send me the code and error once more after u updated -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> ok now send me the code and error once more after u updatedyeah sure. def search @orders = Order.find :all session[:query] = params[:query].strip if params[:query] if session[:query] and request.xhr? @users = User.find(:all, :conditions => ["first_name LIKE ?", "%#{session[:query]}%"], :order => "first_name ASC") @product=Array.new @users.each do |user| @orders.each do |order| if user.id == order.user_id @id = order.id @var = Line_items.find_by_order_id(@id) @product << @var render_text "a" else render_text "abc" end end end end The error is: NameError in UserController#search uninitialized constant UserController::Line_items RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.3/lib/active_support/dependencies.rb:477:in `const_missing'' C:/rails/herbaltea/app/controllers/user_controller.rb:88:in `search'' C:/rails/herbaltea/app/controllers/user_controller.rb:85:in `each'' C:/rails/herbaltea/app/controllers/user_controller.rb:85:in `search'' C:/rails/herbaltea/app/controllers/user_controller.rb:84:in `each'' C:/rails/herbaltea/app/controllers/user_controller.rb:84:in `search'' -- 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 -~----------~----~----~----~------~----~------~--~---
Hey you haven''t changed @var = Line_items.find_by_order_id(@id) -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> Hey you haven''t changed > @var = Line_items.find_by_order_id(@id)I hve changed it. -- 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 -~----------~----~----~----~------~----~------~--~---
what about the error now is it there? -- 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 -~----------~----~----~----~------~----~------~--~---
Ruchita Sharma wrote:> Abhi Manyu wrote: >> Hey you haven''t changed >> @var = Line_items.find_by_order_id(@id) > > I hve changed it.Giving the same error.... it is giving this error coz there is no association between users table and lineitems table. Is there any solution for that? -- 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 13 Nov 2007, at 12:31, Ruchita Sharma wrote:> > Ruchita Sharma wrote: >> Abhi Manyu wrote: >>> Hey you haven''t changed >>> @var = Line_items.find_by_order_id(@id) >> >> I hve changed it. > > Giving the same error.... it is giving this error coz there is no > association between users table and lineitems table. Is there any > solution for that?Yes. create the association. Fred --~--~---------~--~----~------------~-------~--~----~ 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 hve changed it. Giving the same error.... it is giving this error coz there is no association between users table and lineitems table. Is there any solution for that? -- 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 13 Nov 2007, at 12:31, Ruchita Sharma wrote: > >> solution for that? > Yes. create the association. > > FredBut how? I dont have a user_id in lineitems table. -- 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 13 Nov 2007, at 12:36, Ruchita Sharma wrote:> > Frederick Cheung wrote: >> On 13 Nov 2007, at 12:31, Ruchita Sharma wrote: >> >>> solution for that? >> Yes. create the association. >> >> Fred > > But how? I dont have a user_id in lineitems table.Read up on has_many :through Fred> > > -- > 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 -~----------~----~----~----~------~----~------~--~---
No not needed can you plese check whether the values are coming correct. Also try running by deleting one by one eg firt delete @var = Line_items.find_by_order_id(@id) @product << @var and run check if there is error -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> No not needed > can you plese check whether the values are coming correct. Also try > running by deleting one by one > eg firt delete @var = Line_items.find_by_order_id(@id) > @product << @var > and run check if there is errorThe code is: @orders = Order.find :all @lineitems = Lineitem.find :all session[:query] = params[:query].strip if params[:query] if session[:query] and request.xhr? @users = User.find(:all, :conditions => ["first_name LIKE ?", "%#{session[:query]}%"], :order => "first_name ASC") @product=Array.new @users.each do |user| @orders.each do |order| if user.id == order.user_id @id = order.id @var = @lineitems.find_by_order_id(@id) @product << @var render_text "a" else render_text "abc" Now the error is: undefined method `find_by_order_id'' for #<Array:0x470c9a8> -- 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 -~----------~----~----~----~------~----~------~--~---
you have to give like @var = LineItem.find_by_order_id(@id) -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> you have to give like > @var = LineItem.find_by_order_id(@id)Yeah i have given it. But now the value of product is coming #. -- 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 -~----------~----~----~----~------~----~------~--~---
@orders = Order.find :all @lineitems = Lineitem.find :all session[:query] = params[:query].strip if params[:query] if session[:query] and request.xhr? @users = User.find(:all, :conditions => ["first_name LIKE ?", "%#{session[:query]}%"], :order => "first_name ASC") @product=Array.new @users.each do |user| @orders.each do |order| if user.id == order.user_id @id = order.id @var = @lineitems.find_by_order_id(@id) breakpoint @var @product << @var render_text "a" else render_text "abc" Give breakpoint like this and check bvalue of @var also before that replace @product=Array.new with @product=Array.new() -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> @orders = Order.find :all > @lineitems = Lineitem.find :all > session[:query] = params[:query].strip if params[:query] > if session[:query] and request.xhr? > @users = User.find(:all, :conditions => ["first_name LIKE ?", > "%#{session[:query]}%"], :order => "first_name ASC") > @product=Array.new > @users.each do |user| > @orders.each do |order| > if user.id == order.user_id > @id = order.id > @var = @lineitems.find_by_order_id(@id) > breakpoint @var > @product << @var > render_text "a" > else > render_text "abc" > > Give breakpoint like this and check bvalue of @var also before that > replace > @product=Array.new with @product=Array.new()Hi, I have checked the values. Value of @id=order.id.... here the value of id is coming right. I have checked the log file as well. @var = @lineitems.find_by_order_id(@id).... the query is also coming right in log file. . i.e.SELECT * FROM lineitems WHERE (lineitems.`order_id` = 1),but again the value of @var is coming # -- 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 -~----------~----~----~----~------~----~------~--~---
did you check the table entries? -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> did you check the table entries?yes i did check the entries. -- 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 -~----------~----~----~----~------~----~------~--~---
let me confirm once again 1)you changed @var = @lineitems.find_by_order_id(@id) to @var = LineItem.find_by_order_id(@id) 2)there is a field in LineItem called order_id 3)the association between LineItem and Order is clearly defined rt? if yes Give breakpoint LineItem.find_by_order_id(@id) and tell -- 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 am not getting what session[:query] = params[:query].strip if params[:query] if session[:query] and request.xhr? is as I havent used such code any way I assume it as correct one -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> I am not getting what > session[:query] = params[:query].strip if params[:query] > if session[:query] and request.xhr? > is as I havent used such code any way I assume it as correct oneI have implemented the textbox to search the user by user name and then displaying the products as per user id. So this code is to search the user. -- 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 -~----------~----~----~----~------~----~------~--~---
one min user name is unique? or not? -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> one min user name is unique? or not?please check this code.... am not able to find why its not working. @orders = Order.find :all @lineitems = Lineitem.find :all session[:query] = params[:query].strip if params[:query] if session[:query] and request.xhr? @users = User.find(:all, :conditions => ["first_name LIKE ?", "%#{session[:query]}%"], :order => "first_name ASC") #@product=Array.new #@product = @users.collect {|u| u.orders.collect(&:line_items)}.flatten @product=Array.new() @users.each do |user| @orders.each do |order| if user.id == order.user_id @id = order.id breakpoint Lineitem.find_by_order_id(@id) #@var = Lineitem.find_by_order_id(@id) #breakpoint @var @product << @var render_text @product else render_text "andnddjhg" -- 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 -~----------~----~----~----~------~----~------~--~---
did you check value at breakpoint Lineitem.find_by_order_id(@id) -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> did you check value at breakpoint Lineitem.find_by_order_id(@id)whenever i give the breakpoint.... my website get hanged and i am not able to view the results. Moreover the user names are not unique. -- 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 -~----------~----~----~----~------~----~------~--~---
the website get hang because you have given breakpoint you can check values from console let ur project folder''s name be product let its location be c: then in console give like c:\product\ruby script breakpointer then run program and come to console and you can see the value then type exit there -- 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 -~----------~----~----~----~------~----~------~--~---
check that and let me know I am abt to leave -- 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 -~----------~----~----~----~------~----~------~--~---
@orders = Order.find :all @lineitems = Lineitem.find :all session[:query] = params[:query].strip if params[:query] if session[:query] and request.xhr? @users = User.find(:all, :conditions => ["first_name LIKE ?", "%#{session[:query]}%"], :order => "first_name ASC") @product=Array.new() @users.each do |user| @orders.each do |order| breakpoint user.id breakpoint order.user_id if user.id == order.user_id @id = order.id breakpoint Lineitem.find_by_order_id(@id) #@var = Lineitem.find_by_order_id(@id) #breakpoint @var @product << @var render_text @product else render_text "andnddjhg" use breakpoint or somehow try to know whether the values user.id and order.user_id are correct and coming inside the loop -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> check that and let me know I am abt to leaveit is giving the error: ruby: permission denied -- script <loaderror> -- 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 is giving the error: ruby: permission denied -- script <loaderror> -- 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 -~----------~----~----~----~------~----~------~--~---
while using breakpoint it will show like Executing breakpoint "value"(if there is value else blank).........at line you have to type exit for each breakpoint -- 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 -~----------~----~----~----~------~----~------~--~---
ok leave it .About breakpoint i will tell u later.can you some how know the values i mentioned -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> while using breakpoint it will show like > Executing breakpoint "value"(if there is value else blank).........at > line > you have to type exit for each breakpointIn console it is giving the error: ruby: permission denied -- script <loaderror>. Not able to view watever u hav written above..... i.e Executing breakpoint "value"(if there is value else blank).........at..... -- 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 would have been better if you have used instant rails. this will install all ruby,rails. also have many features can u please check those things without breakpoint.I dont know if there is any other way to find valuses but still if you know please tell the values i mentioned within 5 mins mail me the latest -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> it would have been better if you have used instant rails. this will > install all ruby,rails. also have many features > > can u please check those things without breakpoint.I dont know if there > is any other way to find valuses but still if you know please tell the > values i mentioned within 5 mins > mail me the latest@users.each do |user| @orders.each do |order| if user.id == order.user_id @id = order.id yeah the value of @id is 1. @var = Lineitem.find_by_order_id(@id) the value of @var is # @product << @var the value of @product is # -- 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 -~----------~----~----~----~------~----~------~--~---
did you check the db whether there is order_id = 1 -- 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 am not getting any other reasons -- 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 -~----------~----~----~----~------~----~------~--~---
Abhi Manyu wrote:> I am not getting any other reasonsyeah order_id is 1. Okie now lets see it tomorrow. Thanks a lot for your 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 -~----------~----~----~----~------~----~------~--~---
Ruchita Sharma wrote:> Abhi Manyu wrote: > >> it would have been better if you have used instant rails. this will >> install all ruby,rails. also have many features >> >> can u please check those things without breakpoint.I dont know if there >> is any other way to find valuses but still if you know please tell the >> values i mentioned within 5 mins >> mail me the latest >> > > @users.each do |user| > @orders.each do |order| > if user.id == order.user_id > @id = order.id > yeah the value of @id is 1. > @var = Lineitem.find_by_order_id(@id) > the value of @var is # > @product << @var > the value of @product is # > >Hi Ruchita and Abhi Manyu Take a look at this: http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/893dfa334ed3253d/e5a0b63a1b73f9ef?hl=en& Guys, you really need to take this off-list. This thread has 110 posts now, the bulk of which is only between the 2 of you, ranging from Content Management in Rails, Deepavali wishes (and happy diwali to the both of you), IDE discussions, Good morning, Good luck, Good night, issues relating to thumbnails, and finally issues relating to finding a record. This is simply a case of message ping-pong between the two of you since quite a while now. It is not very helpful to the list to have a ball-by-ball update of your application. This kind of conversation is much better suited to email or MSN or IRC... I think the both of you seem to be accessing the forum from a web gateway but there are a large number of us who receive this through google groups email - and we are getting continuous emails from just the 2 of you. I don''t think anyone here has a problem with there being a lot of email relating to a specific subject, but this thread hardly fits the bill. Also, there have already been 2 requests to take this off-list since it seems more like an instant messaging conversation than a technical group. I know I could set it to send any mail from the 2 of you to the junk folder (and probably many have aready done so), but that means that when you do ask something else that I may be able to help with, your mail will be sitting in Junk. 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?hl=en -~----------~----~----~----~------~----~------~--~---
Abhi Manyu, Ruchita - Can you please post your email addresses ? On Nov 13, 2007 1:49 PM, Abhi Manyu <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > check that and let me know I am abt to leave > > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---