[Rails] Re: Download image after page load

2013-01-30 Thread Dung Van
nguye van dung Attachments: http://www.ruby-forum.com/attachment/8090/anh.jpg -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it,

Re: [Rails] Digest for rubyonrails-talk@googlegroups.com - 22 Messages in 9 Topics

2013-01-30 Thread shyam
-- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [Rails] case study

2013-01-30 Thread oto iashvili
I want to do @ad = Ad.attributes(params[:ad]) maybe Im wrong, but as I understood about polymorphic in rails, this would thow an error say that ad_real_estate_details does not exist as they explained here

[Rails] Re: Filter Index Page

2013-01-30 Thread Ryo Saeba
So this is what the method in the controller looks now def index if(params[:q]) render :partial = 'search_results', :locals = @games else render :partial = 'no_search_yet' end end and I removed the one @ in the index view, but it only results in, whenever I use the

[Rails] Rating System

2013-01-30 Thread Ryo Saeba
I'm trying to create a Rating System for my application. My Model is called game and has a rating field. Each logged in User shall give his rating (preferably via ajax), while the GAme Objects saved all Ratings given and displays the total amount of them. Is there a nice gem for this feature? I

[Rails] Two FREE days of CodeSchool!

2013-01-30 Thread Dave Aronson
CodeSchool, home of Rails for Zombies and other courses on Ruby, Rails, JavaScript, CSS, HTML, SASS, CoffeeScript, and more, is giving away two free days of full access to those courses *plus* all episodes of their CodeTV (which you can download to watch later). To claim your Hall Pass, go to:

[Rails] Re: Can't install RMagick due to MagickWand problems

2013-01-30 Thread rakesh ostwal
I am getting same error for windows please anybody will help me. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [Rails] Filter Index Page

2013-01-30 Thread Walter Lee Davis
On Jan 30, 2013, at 6:33 AM, Ryo Saeba wrote: So this is what the method in the controller looks now def index if(params[:q]) render :partial = 'search_results', :locals = @games else render :partial = 'no_search_yet' end end and I removed the one @ in the index

Re: [Rails] Count entries in postgresql grouped by date

2013-01-30 Thread Scott Ribe
You're looking for the AT TIME ZONE construct. On Jan 29, 2013, at 9:26 AM, Linus Pettersson wrote: Hi! I have a table with visits with a visited_at: attribute which is a datetime field. They seem to be stored as UTC. Now I want to count all visits each day and return something like: {

[Rails] Multiple forms to create multiple records for multiple users

2013-01-30 Thread Abdullah Esmail
Hello. I have come across a scenario where I need to save multiple records for multiple users on the same page. User has_many :shifts Shift belongs_to :user I need to show multiple shifts for each user on the same page and the administrator will just enter some values and click save. Example:

Re: [Rails] case study

2013-01-30 Thread Jim Ruther Nill
On Wed, Jan 30, 2013 at 6:48 PM, oto iashvili optimum.dulo...@laposte.netwrote: I want to do @ad = Ad.attributes(params[:ad]) maybe Im wrong, but as I understood about polymorphic in rails, this would thow an error say that ad_real_estate_details does not exist as they explained here

Re: [Rails] Multiple forms to create multiple records for multiple users

2013-01-30 Thread Jim Ruther Nill
On Wed, Jan 30, 2013 at 5:34 PM, Abdullah Esmail abdullah.esm...@gmail.comwrote: Hello. I have come across a scenario where I need to save multiple records for multiple users on the same page. User has_many :shifts Shift belongs_to :user I need to show multiple shifts for each user on the

Re: [Rails] Re: Filter Index Page

2013-01-30 Thread Colin Law
On 30 January 2013 11:33, Ryo Saeba li...@ruby-forum.com wrote: So this is what the method in the controller looks now def index if(params[:q]) render :partial = 'search_results', :locals = @games else render :partial = 'no_search_yet' end end and I removed

[Rails] Re: Filter Index Page

2013-01-30 Thread Ryo Saeba
in my console it says: Started GET /games?utf8=%E2%9C%93search=megacommit=Search for 127.0.0.1 at 2013-01-30 15:52:18 +0100 Processing by GamesController#index as HTML Parameters: {utf8=V, search=mega, commit=Search} Rendered games/_no_search_yet.html.erb (0.0ms) Completed 200 OK in 5ms

Re: [Rails] Filter Index Page

2013-01-30 Thread Walter Lee Davis
On Jan 30, 2013, at 9:54 AM, Ryo Saeba wrote: in my console it says: Started GET /games?utf8=%E2%9C%93search=megacommit=Search for 127.0.0.1 at 2013-01-30 15:52:18 +0100 Processing by GamesController#index as HTML Parameters: {utf8=V, search=mega, commit=Search} Rendered

[Rails] DropDown onChange event update the table in view

2013-01-30 Thread Abhishek Thayyil
Hi all, I am fairly new to ROR and recently i created an application where i have a combobox when on select the item from combobox i need the table in the view to be updated based on the selection of the item selected in the combobox. I need to do it using javascript , the whole data should be

[Rails] Re: Filter Index Page

2013-01-30 Thread Ryo Saeba
This is really weird. Having used :q as a name actually opens the no search yet partial, wether I used the search function or not. but using :search in my if clause I get a NameError in my index file. undefined local variable or method `games' for ##Class:0x674f2c8:0x3f8e698 Extracted source

[Rails] rails 3.0.19 and exception notification 3.0.0 do not play well together

2013-01-30 Thread jsnark
Ever since I upgraded my applications to rails 3.0.19 due to the security issue with older versions, exception notification has stopped working. What is the fix for this problem? Thank you. Rendered

Re: [Rails] Filter Index Page

2013-01-30 Thread Walter Lee Davis
On Jan 30, 2013, at 1:01 PM, Ryo Saeba wrote: This is really weird. Having used :q as a name actually opens the no search yet partial, wether I used the search function or not. but using :search in my if clause I get a NameError in my index file. undefined local variable or method

Re: [Rails] rails 3.0.19 and exception notification 3.0.0 do not play well together

2013-01-30 Thread Colin Law
On 30 January 2013 18:57, jsnark s...@monmouth.com wrote: Ever since I upgraded my applications to rails 3.0.19 due to the security issue with older versions, exception notification has stopped working. What is the fix for this problem? Thank you. Rendered

[Rails] Re: Filter Index Page

2013-01-30 Thread Ryo Saeba
First, thank you for helping me out with this problem for this long. The Partial I'm using is _search_results not _games, so I corrected this in my statement. The if statement works indeed. Now the index page always shows my desired template, when the search function was NOT used. But if it's

Re: [Rails] Re: Filter Index Page

2013-01-30 Thread Colin Law
On 30 January 2013 22:15, Ryo Saeba li...@ruby-forum.com wrote: First, thank you for helping me out with this problem for this long. The Partial I'm using is _search_results not _games, so I corrected this in my statement. The if statement works indeed. Now the index page always shows my

[Rails] Re: Filter Index Page

2013-01-30 Thread Ryo Saeba
All right I fixed it now!! Appearently all I had to put in the if statement, was the same code-line I originally used for simply displaying the list: def index @games = Game.search(params[:search]) end I don't even have to do an if-statement in the controller at all. That goes to

Re: [Rails] case study

2013-01-30 Thread oto iashvili
hi thanks for answer sorry I quite new in RoR. If I do how u said, will I have to validate manually all the attributes for details ? Le mercredi 30 janvier 2013 15:27:43 UTC+1, jim a écrit : On Wed, Jan 30, 2013 at 6:48 PM, oto iashvili optimum...@laposte.netjavascript: wrote: I want

Re: [Rails] Looking for RoR job (remotely/part-time/full-time)

2013-01-30 Thread Alexandre Calvão
mail me so we can talk apot...@gmail.com === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2013/1/28 Sep D. li...@ruby-forum.com Hi guys, I am looking for a job as a Ruby On

Re: [Rails] case study

2013-01-30 Thread Jim Ruther Nill
On Thu, Jan 31, 2013 at 7:08 AM, oto iashvili optimum.dulo...@laposte.netwrote: hi thanks for answer sorry I quite new in RoR. If I do how u said, will I have to validate manually all the attributes for details ? Now that you've asked that, I'm not sure. You can try to use

[Rails] Re: Looking for RoR job (remotely/part-time/full-time)

2013-01-30 Thread Sam A.
we have an onsite opurtunity with our direct client for 24+months If intrested please do forward your profile to sam.alexan...@marlabs.com Sam 732-2088319 Sep D. wrote in post #1094090: Hi guys, I am looking for a job as a Ruby On Rails developer - remotely, as a part-time or full-time.

[Rails] ROR oppurtnity

2013-01-30 Thread Sam A.
Dear Members; We are looking for ROR developers with our direct client in VA Duration-24+Months Any one interested please do reply Sam 732-208-8319 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] ROR oppurtnity

2013-01-30 Thread rubyonrailsx
Hi, Sam I need a rails job which can work remotely, I have been using rails for 4+ years and i am located in +8 timezone. -- rubyonrailsx Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Thursday, January 31, 2013 at 10:47 AM, Sam A. wrote: Dear Members; We are looking for ROR

[Rails] Shameless plug

2013-01-30 Thread Jim Ruther Nill
Hey guys, If you have time to read something today, please visit the latest entry on NetEngine's blog. http://netengine.com.au/blog/learning-while-conducting-the-triggerapp-upgrade/ This will grant me a case of beer if I gain at least 60 views today. hehe Thanks! --

Re: [Rails] Digest for rubyonrails-talk@googlegroups.com - 25 Messages in 12 Topics

2013-01-30 Thread shyam
-- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to

[Rails] Re: Trouble starting WEBrick server

2013-01-30 Thread Mark N.
Hi Hassan, There was a sudden power outage and therefore Webrick couldn't be shutdown gracefully. On machine restart, I got the exact same error as Gordons, however, my Ruby is 1.8.7 and I'm on a WinXP machine. Additionally, I found that none of my browsers (IE/Firefox) can connect to any

[Rails] WickedPdf error in production

2013-01-30 Thread Saravanan P
Hello everyone, I am using rails -v 3.2.8. I am using wickedpdf to generate pdf. Its working well in my local machine. But its not working in production server. ompleted 500 Internal Server Error in 4443ms RuntimeError (Failed to execute:

[Rails] Re: DropDown onChange event update the table in view

2013-01-30 Thread New_to_Rails
hi dude i'm also new to ror, two days back i struggled for the same problem but in my case when i select an item from dropdown in my view. based on the selection another dropdown in the view should be update automatically without touching database... go to this site,see demo and view

Re: [Rails] Re: Trouble starting WEBrick server

2013-01-30 Thread Jordon Bedwell
On Wed, Jan 30, 2013 at 10:44 PM, Mark N. li...@ruby-forum.com wrote: There was a sudden power outage and therefore Webrick couldn't be shutdown gracefully. On machine restart, I got the exact same error as Gordons, however, my Ruby is 1.8.7 and I'm on a WinXP machine. Additionally, I found

[Rails] Re: Trouble starting WEBrick server

2013-01-30 Thread Mark
Thanks, Jordon. I already tried that, there's no Webrick or Ruby process listed. Jordon Bedwell envygeeks@... writes: CTRL+SHIFT+ESC and search for webrick or ruby, right click, murder/kill -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk