On Sun, Feb 12, 2012 at 4:14 AM, Dave Castellano wrote:
> Can't figure out how duplicate routes are differentiated by rails ...
> Read routing from inside out and API as well as a few tutorials but
> still don't get it!!! For example...
>
> routes.rb
> resources :minisections do
> resourc
I am using rails 3.1 with jquery and want to use jstree to present
some hierarchical data. That plugin then demands one to render json
and to load it in to the jstree
I have googled for some guides about how to achieve that but have not
found any useful information
After these studies I think the
Can't figure out how duplicate routes are differentiated by rails ...
Read routing from inside out and API as well as a few tutorials but
still don't get it!!! For example...
routes.rb
resources :minisections do
resources :questions
end
rake routes:
minisection_question GET
/minise
On Sat, Feb 11, 2012 at 11:50 PM, Everaldo Gomes
wrote:
> Hi!
>
> Take a look at:
>
> http://www.ruby-doc.org/core-1.9.3/Enumerable.html#method-i-group_by
>
> and
>
> http://www.ruby-doc.org/core-1.9.3/Enumerable.html#method-i-collect
>
> I think they could help.
>
> E.g:
>
> hash = Time.all.colle
Hi!
Take a look at:
http://www.ruby-doc.org/core-1.9.3/Enumerable.html#method-i-group_by
and
http://www.ruby-doc.org/core-1.9.3/Enumerable.html#method-i-collect
I think they could help.
E.g:
hash = Time.all.collect { |t| [ t.date , t.hour ] }.group_by { |date,hour|
date.strftime("%-m/%-d/%Y
I have an active record Times table with a date column and an hour
column. The hours are unique but the dates can have many hours. How
would I create a hash that mapped a date key to its hours? Something
like:
hours_per_date['2/14/2012'] => ['6:00', '8:00', '11:00', '2:00']
Thanks
--
You rec
> skip_filter :authenticate_user!, :only => [:index, :show] unless
> @current_layout.nil?
I'm guessing that the unless statement is being parsed as an argument
to skip_filter. Try using parentheses like this:
skip_filter(:authenticate_user!, :only => [:index, :show]) unless
@current_layout.nil?
On Sat, Feb 11, 2012 at 9:46 PM, Mauro wrote:
> route.rb
>
> match "/:layout" => "company@index"
>
> in application_controller I have:
>
> before_filter :authenticate_user!
> rescue_from DeviseLdapAuthenticatable::LdapException do |exception|
> render :text => exception, :status => 500
> end
route.rb
match "/:layout" => "company@index"
in application_controller I have:
before_filter :authenticate_user!
rescue_from DeviseLdapAuthenticatable::LdapException do |exception|
render :text => exception, :status => 500
end
protect_from_forgery
before_filter :set_layout
layout :speci
Watch Kansas vs Oklahoma St live free Top 25 NCAA Basketball Online HD
on Pc Enjoy the most competitive NCAA Basketball match between Kansas vs
Oklahoma St live online on your PC. This is the best online sports
coverage TV. You can watch all the matches of the season live by using
this online sport
Watch Oklahoma St vs Kansas live free Top 25 NCAA Basketball Online HD
on Pc Enjoy the most competitive NCAA Basketball match between Oklahoma
St vs Kansas live online on your PC. This is the best online sports
coverage TV. You can watch all the matches of the season live by using
this online sport
Watch UNLV vs San Diego St live free Top 25 NCAA Basketball Online HD on
Pc Enjoy the most competitive NCAA Basketball match between UNLV vs San
Diego St live online on your PC. This is the best online sports coverage
TV. You can watch all the matches of the season live by using this
online sports
Watch San Diego St vs UNLV live free Top 25 NCAA Basketball Online HD on
Pc Enjoy the most competitive NCAA Basketball match between San Diego St
vs UNLV live online on your PC. This is the best online sports coverage
TV. You can watch all the matches of the season live by using this
online sports
Watch Florida vs Tennessee live free Top 25 NCAA Basketball Online HD on
Pc Enjoy the most competitive NCAA Basketball match between Florida vs
Tennessee live online on your PC. This is the best online sports
coverage TV. You can watch all the matches of the season live by using
this online sports
Watch Duke vs Maryland live free Top 25 NCAA Basketball Online HD on Pc
Enjoy the most competitive NCAA Basketball match between Duke vs
Maryland live online on your PC. This is the best online sports coverage
TV. You can watch all the matches of the season live by using this
online sports TV 11th,
Watch Oklahoma St vs Kansas live free Top 25 NCAA Basketball Online HD
on Pc Enjoy the most competitive NCAA Basketball match between Oklahoma
St vs Kansas live online on your PC. This is the best online sports
coverage TV. You can watch all the matches of the season live by using
this online sport
Watch UNLV vs San Diego St live free Top 25 NCAA Basketball Online HD on
Pc Enjoy the most competitive NCAA Basketball match between UNLV vs San
Diego St live online on your PC. This is the best online sports coverage
TV. You can watch all the matches of the season live by using this
online sports
Watch San Diego St vs UNLV live free Top 25 NCAA Basketball Online HD on
Pc Enjoy the most competitive NCAA Basketball match between San Diego St
vs UNLV live online on your PC. This is the best online sports coverage
TV. You can watch all the matches of the season live by using this
online sports
Watch Marquette vs Cincinnati live free Top 25 NCAA Basketball Online HD
on Pc Enjoy the most competitive NCAA Basketball match between Marquette
vs Cincinnati live online on your PC. This is the best online sports
coverage TV. You can watch all the matches of the season live by using
this online s
On Sat, Feb 11, 2012 at 14:44, Jay Chulani wrote:
> Mother effin spammers!
By quoting it in full, you've just given the jerk more free
advertising, and used more of our bandwidth, cluttering our list of
messages, with a message full of sound and fury, signifying nothing.
Engage brain before fin
On Feb 10, 9:58 am, "Rogelio A. RogeX" wrote:
> hi, I would like get the value of text_field from controller, my
> text_field_tag not within of form, is necessary to use.
>
> as I can do it without javascript
Not quite sure that I parse what you're looking for - without
Javascript, the only way
On 11 February 2012 19:23, Marcin S wrote:
> 2012/2/11 Peter Vandenabeele :
>> On Sat, Feb 11, 2012 at 1:11 PM, Marcin S wrote:
>>>
>>> Hello,
>>> I have a rails app created on rails 3.1.x and ruby 1.9.2, but server
>>> where it should be deployed runs ruby-1.8 :/
>>> Ruby-1.9 implements new sty
Hi,
I'm looking for a Rubyist in the Fort Meade, MD area to lead a small
team of Rails developers. The position requires at least 2 years of
experience with RoR, as well as experience with both test-driven and
behavior-driven development. The position requires a TS/SCI with
full scope poly (if
On Feb 9, 3:52 am, Peter Vandenabeele wrote:
> On Thu, Feb 9, 2012 at 7:07 AM, Hassan Schroeder
> > wrote:
> > On Wed, Feb 8, 2012 at 8:54 PM, Bob Smith wrote:
>
> > > What I am trying to do is have a *unique value* set in each new record
>
> > See:http://rubygems.org/gems/uuid
>
> Indeed.
>
> A
2012/2/11 Peter Vandenabeele :
> On Sat, Feb 11, 2012 at 1:11 PM, Marcin S wrote:
>>
>> Hello,
>> I have a rails app created on rails 3.1.x and ruby 1.9.2, but server
>> where it should be deployed runs ruby-1.8 :/
>> Ruby-1.9 implements new style of hash assigment that Rails 3 utilize
>> in some
Watch Cincinnati vs Marquette live free Top 25 NCAA Basketball Online HD
on Pc Enjoy the most competitive NCAA Basketball match between
Cincinnati vs Marquette live online on your PC. This is the best online
sports coverage TV. You can watch all the matches of the season live by
using this online s
Watch Missouri vs Baylor live free Top 25 NCAA Basketball Online HD on
Pc Enjoy the most competitive NCAA Basketball match between Missouri vs
Baylor live online on your PC. This is the best online sports coverage
TV. You can watch all the matches of the season live by using this
online sports TV 1
Watch Baylor vs Missouri live free Top 25 NCAA Basketball Online HD on
Pc Enjoy the most competitive NCAA Basketball match between Baylor vs
Missouri live online on your PC. This is the best online sports coverage
TV. You can watch all the matches of the season live by using this
online sports TV 1
Watch Mississippi St vs Georgia live free Top 25 NCAA Basketball Online
HD on Pc Enjoy the most competitive NCAA Basketball match between
Mississippi St vs Georgia live online on your PC. This is the best
online sports coverage TV. You can watch all the matches of the season
live by using this onli
Watch Georgia vs Mississippi St live free Top 25 NCAA Basketball Online
HD on Pc Enjoy the most competitive NCAA Basketball match between
Georgia vs Mississippi St live online on your PC. This is the best
online sports coverage TV. You can watch all the matches of the season
live by using this onli
Watch Syracuse vs Connecticut live free Top 25 NCAA Basketball Online HD
on Pc Enjoy the most competitive NCAA Basketball match between Syracuse
vs Connecticut live online on your PC. This is the best online sports
coverage TV. You can watch all the matches of the season live by using
this online s
Watch Connecticut vs Syracuse live free Top 25 NCAA Basketball Online HD
on Pc Enjoy the most competitive NCAA Basketball match between
Connecticut vs Syracuse live online on your PC. This is the best online
sports coverage TV. You can watch all the matches of the season live by
using this online s
Watch North Carolina vs Virginia live free Top 25 NCAA Basketball Online
HD on Pc Enjoy the most competitive NCAA Basketball match between North
Carolina vs Virginia live online on your PC. This is the best online
sports coverage TV. You can watch all the matches of the season live by
using this on
Watch Virginia vs North Carolina live free Top 25 NCAA Basketball Online
HD on Pc Enjoy the most competitive NCAA Basketball match between
Virginia vs North Carolina live online on your PC. This is the best
online sports coverage TV. You can watch all the matches of the season
live by using this on
Watch Miami (FL) vs Florida St live free Top 25 NCAA Basketball Online
HD on Pc Enjoy the most competitive NCAA Basketball match between Miami
(FL) vs Florida St live online on your PC. This is the best online
sports coverage TV. You can watch all the matches of the season live by
using this online
Watch Florida St vs Miami (FL) live free Top 25 NCAA Basketball Online
HD on Pc Enjoy the most competitive NCAA Basketball match between
Florida St vs Miami (FL) live online on your PC. This is the best online
sports coverage TV. You can watch all the matches of the season live by
using this online
Watch Syracuse vs Connecticut live free Top 25 NCAA Basketball Online HD
on Pc Enjoy the most competitive NCAA Basketball match between Syracuse
vs Connecticut live online on your PC. This is the best online sports
coverage TV. You can watch all the matches of the season live by using
this online s
Watch Connecticut vs Syracuse live free Top 25 NCAA Basketball Online HD
on Pc Enjoy the most competitive NCAA Basketball match between
Connecticut vs Syracuse live online on your PC. This is the best online
sports coverage TV. You can watch all the matches of the season live by
using this online s
Watch North Carolina vs Virginia live free Top 25 NCAA Basketball Online
HD on Pc Enjoy the most competitive NCAA Basketball match between North
Carolina vs Virginia live online on your PC. This is the best online
sports coverage TV. You can watch all the matches of the season live by
using this on
Watch Virginia vs North Carolina live free Top 25 NCAA Basketball Online
HD on Pc Enjoy the most competitive NCAA Basketball match between
Virginia vs North Carolina live online on your PC. This is the best
online sports coverage TV. You can watch all the matches of the season
live by using this on
Watch Florida St vs Miami (FL) live free Top 25 NCAA Basketball Online
HD on Pc Enjoy the most competitive NCAA Basketball match between
Florida St vs Miami (FL) live online on your PC. This is the best online
sports coverage TV. You can watch all the matches of the season live by
using this online
Watch Miami (FL) vs Florida St live free Top 25 NCAA Basketball Online
HD on Pc Enjoy the most competitive NCAA Basketball match between Miami
(FL) vs Florida St live online on your PC. This is the best online
sports coverage TV. You can watch all the matches of the season live by
using this online
Watch West Virginia vs Louisville live free Top 25 NCAA Basketball
Online HD on Pc Enjoy the most competitive NCAA Basketball match between
West Virginia vs Louisville live online on your PC. This is the best
online sports coverage TV. You can watch all the matches of the season
live by using this
Watch Louisville vs West Virginia live free Top 25 NCAA Basketball
Online HD on Pc Enjoy the most competitive NCAA Basketball match between
Louisville vs West Virginia live online on your PC. This is the best
online sports coverage TV. You can watch all the matches of the season
live by using this
Watch West Virginia vs Louisville live free Top 25 NCAA Basketball
Online HD on Pc Enjoy the most competitive NCAA Basketball match between
West Virginia vs Louisville live online on your PC. This is the best
online sports coverage TV. You can watch all the matches of the season
live by using this
Watch Louisville vs West Virginia live free Top 25 NCAA Basketball
Online HD on Pc Enjoy the most competitive NCAA Basketball match between
Louisville vs West Virginia live online on your PC. This is the best
online sports coverage TV. You can watch all the matches of the season
live by using this
Watch West Virginia vs Louisville live free Top 25 NCAA Basketball
Online HD on Pc Enjoy the most competitive NCAA Basketball match between
West Virginia vs Louisville live online on your PC. This is the best
online sports coverage TV. You can watch all the matches of the season
live by using this
Watch Louisville vs West Virginia live free Top 25 NCAA Basketball
Online HD on Pc Enjoy the most competitive NCAA Basketball match between
Louisville vs West Virginia live online on your PC. This is the best
online sports coverage TV. You can watch all the matches of the season
live by using this
Rugby and Ruby aren't so different after all:
Comparisons between two frameworks: Sinatra and rails in our case,
http://en.wikipedia.org/wiki/Comparison_of_rugby_league_and_rugby_union in
theirs
Their version of RubySpec: http://en.wikipedia.org/wiki/Laws_of_rugby_league
They have Scrum too: h
On Sat, Feb 11, 2012 at 11:40 AM, Michael Pavling wrote:
> On 11 February 2012 16:38, shil shilbari wrote:
> > Hey Rugby Lovers!!
>
> Ruby != Rugby
>
> :-D
>
>
Rugby On Rails LOL!
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To pos
Michael Pavling wrote in post #1045589:
> On 11 February 2012 16:31, brent brent wrote:
>> Folks
>> Was wondering is it possible to pass args into the new action on a
>> controller? I have some javascript that is passing in a date to action
>> new on a controller and i want to set a field if the d
On 11 February 2012 16:38, shil shilbari wrote:
> Hey Rugby Lovers!!
Ruby != Rugby
:-D
--
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@googlegroups.com.
To unsubscribe from this gro
On 11 February 2012 16:31, brent brent wrote:
> Folks
> Was wondering is it possible to pass args into the new action on a
> controller? I have some javascript that is passing in a date to action
> new on a controller and i want to set a field if the date was passed in.
http://my.rails.app/foos/
Folks
Was wondering is it possible to pass args into the new action on a
controller? I have some javascript that is passing in a date to action
new on a controller and i want to set a field if the date was passed in.
--
Posted via http://www.ruby-forum.com/.
--
You received this message becau
On 11 February 2012 14:45, Amrit Pal Pathak wrote:
> rails -v=2.3.8
> gem -v= 1.4.2
> ruby -v=1.8.7
>
> When i issue the "rake" command ,it gives the following error .
>
> (in /home/amrit/amrit/OSV/OpenStreetView)
> /usr/bin/ruby1.8 -I"lib:test"
> "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/r
I feel your pain. I've been in the midst of similar tasks for a large
2.3.11 codebase. Here are a couple of links that might help:
http://gembundler.com/compatibility
http://blog.rubygems.org/2011/08/31/shaving-the-yaml-yak.html
I'd take it one gem at a time.
Good luck.
H
On Feb 10, 3:21 pm, Me
rails -v=2.3.8
gem -v= 1.4.2
ruby -v=1.8.7
When i issue the "rake" command ,it gives the following error .
(in /home/amrit/amrit/OSV/OpenStreetView)
/usr/bin/ruby1.8 -I"lib:test"
"/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
"test/functional/main_controller_test.rb"
"test/
On Sat, Feb 11, 2012 at 1:11 PM, Marcin S wrote:
> Hello,
> I have a rails app created on rails 3.1.x and ruby 1.9.2, but server
> where it should be deployed runs ruby-1.8 :/
> Ruby-1.9 implements new style of hash assigment that Rails 3 utilize
> in some places - and thats the problem, bcos Ru
after updating pg gem to 0.13.0 got following error on production
server (rails 3.2.1 + unicorn): "Use of uninitialized PG::Connection.
(fatal)", here is some trace from unicorn_error.log:
/srv/site/shared/bundle/ruby/1.9/gems/activerecord-3.2.1/lib/
active_record/connection_adapters/postgresql_ad
Hello,
I have a rails app created on rails 3.1.x and ruby 1.9.2, but server
where it should be deployed runs ruby-1.8 :/
Ruby-1.9 implements new style of hash assigment that Rails 3 utilize
in some places - and thats the problem, bcos Ruby 1.8 does not support
it...
Now, what to do? My server adm
I am working on a Web Application with rails which is more of a single page
( think a dashboard )
I want a left side strip fetching a list with and a main app area to the
left rendering most of the Application (All with jQuery)
In Rails I have a single controller Dashboard for now. I want the
61 matches
Mail list logo