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,
--
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
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
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
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
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:
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
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
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:
{
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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!
--
--
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
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
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:
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
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
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
36 matches
Mail list logo