i'm looking alternative variant
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr...@g
https://rubygems.org/gems/win32-open3-19
DEPRECATED: Provides Open4.popen4 via win32/open3 (win32-open3 behavior
from 1.8) on ruby 1.9. Don't use this for new code.
may be this will help you
On Wed, Jul 3, 2013 at 9:45 AM, Ulugbek Nurjanov wrote:
> Hi All
> I'm install latest railsinstaller 2.2
Hi All
I'm install latest railsinstaller 2.2.1
and install gem win32-open3-19 for work gh command.
And create git init success
commit -m "Initial" success
But this don't work
gh create-from-local
errors ruby 202 etc how fix this help me
--
Posted via http://www.ruby-forum.com/.
--
You received
[:anno_a, :anno_b, :anno_c, :anno_d].each do |key|
@formatted_question[key] = @question[:correct_anno] if
@formatted_question[key].length < 2
end
--
Dheeraj Kumar
On Wednesday 3 July 2013 at 9:08 AM, Dave Castellano wrote:
> Dave Castellano wrote in post #1114260:
> > Dheeraj Kumar wrote
Dave Castellano wrote in post #1114260:
> Dheeraj Kumar wrote in post #1114259:
>> @formatted_question.each_pair do |key, value|
>>@formatted_question[key] = @question[:correct_anno] if value.length <
>> 2
>> end
>>
>> --
>> Dheeraj Kumar
>
> Thanks!!
Oops, that will not work as the hash conta
Dheeraj Kumar wrote in post #1114259:
> @formatted_question.each_pair do |key, value|
>@formatted_question[key] = @question[:correct_anno] if value.length <
> 2
> end
>
> --
> Dheeraj Kumar
Thanks!!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subs
@formatted_question.each_pair do |key, value|
@formatted_question[key] = @question[:correct_anno] if value.length < 2
end
--
Dheeraj Kumar
On Wednesday 3 July 2013 at 8:19 AM, Dave Castellano wrote:
> Hello,
>
> I'm learning rails and starting to try to refactor code that repeats
> itself
Hello,
I'm learning rails and starting to try to refactor code that repeats
itself..
I have several lines of code like the following and wonder if there is a
more efficient way to do this. Any suggestions would be greatly
appreciated as one example would help me figure out how to refactor alot
o
Thanks for the replies, I got to the bottom of the issue. I was following
this in a tutorial and had the following on my users model, which was
converting the role name to camelcaze, so when I removed the ".camelize" it
let me in to the restricted pages as expected. Thanks again for the help!
d
Any ideas on this?
On Tue, Jul 2, 2013 at 3:19 PM, why-el wrote:
> Hey fellas,
>
> Is there a way to selectively respond with a format depending on whether
> there were errors creating an object or not?
>
> My goal is to *have a remote form fall back to the html version of the
> 'new' action if
On Tue, Jul 2, 2013 at 12:13 PM, Linus Pettersson
wrote:
> execute "CREATE UNIQUE INDEX index_products_on_lower_name ON products USING
> btree (lower(name));"
>
> But does Rails have support for creating it? Don't like to use execute() if
> there is a better way :)
Not that I've ever seen but tha
Hi
I'm sorting some columns like this: MyModel.order("LOWER(column) ASC")...
But these queries are quite slow. I'm on Postgres by the way.
Does Rails support creating a lowercase index for these situations? I know
Postgres has support for it and I guess I can create one like this (found
on SO)
Hey fellas,
Is there a way to selectively respond with a format depending on whether
there were errors creating an object or not?
My goal is to *have a remote form fall back to the html version of the
'new' action if there were errors*. In other words, run the create.js.erb
if the save succee
Ilya Ishmatov wrote in post #1114007:
> Hi.
>
> After update in Gemfile rails gem from 3.2.6 to 4.0.0.
>
> Registration by openid not working.
>
> Log from console:
>
> I, [2013-06-30T17:56:33.632030 #23279] INFO -- OpenID: Error attempting
> to
> use stored discovery information: OpenID::TypeURIM
if user.role? :admin looks strange. the .role? indicates that it is a
boolean, no?
On Monday, July 1, 2013 6:22:46 PM UTC-4, Phil wrote:
>
> Rails 3.2.11
> Ruby 2
>
>
> Hi,
>
> I am building my first rails app and decided to use Devise(2.2.4) and
> Cancan(1.6.10) for auth and role management. Th
On 1 July 2013 19:15, Rick wrote:
> the answer is to be found here:
> http://guides.rubyonrails.org/association_basics.html
Also work right through a good tutorial such as railstutorial.org
(which is free to use online). This will show you the basics of
Rails.
Colin
>
>
> On Sunday, June 30,
16 matches
Mail list logo