Ruby on Rails Wednesday, June 29, 2016

Hi, I have a problem with rails time_select. I want to disable
time_select while page load.

<%= h.time_select dow + "_start_time",{minute_step: 15, ampm: true},
{class: 'test', disabled: ''} %>

generated html is

<select class="" name="account[start_time(4i)]"
id="account_start_time_4i">
<option selected="selected" value="00">12 AM</option>
<option value="01">01 AM</option>
<option value="02">02 AM</option>
<option value="03">03 AM</option>
<option value="04">04 AM</option>
<option value="05">05 AM</option>
<option value="06">06 AM</option>
<option value="07">07 AM</option>
<option value="08">08 AM</option>
<option value="09">09 AM</option>
<option value="10">10 AM</option>
<option value="11">11 AM</option>
<option value="12">12 PM</option>
<option value="13">01 PM</option>
<option value="14">02 PM</option>
<option value="15">03 PM</option>
<option value="16">04 PM</option>
<option value="17">05 PM</option>
<option value="18">06 PM</option>
<option value="19">07 PM</option>
<option value="20">08 PM</option>
<option value="21">09 PM</option>
<option value="22">10 PM</option>
<option value="23">11 PM</option>
</select>


The above erb code generates 'class' attribute. 'disabled' attribute is
not being created.

Can you help

Thanks,
Aashish

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8c30b2a7c89abb6c2ddee3747dce3818%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On Tue, Jun 28, 2016 at 11:21 AM, Deepak Sharma <deeky.sharma@gmail.com> wrote:
>
> Any help on this. I tried so many attempts to solve it but no luck.

Providing a link to a reproducible test case would be a good start...

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBz-6Jw4O7cp-rgArEA4A6DVkZAW91vYYk47HSGujmXFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

if it fails after you installed Xcode you might need to run

$ xcode-select --install

John

On Tuesday, June 21, 2016 at 10:09:00 AM UTC-5, Eugeniu Tambur wrote:
Hello, 
You have installed Xcode ??
 P.S. why not rvm ?? :)

Br,
Eugeniu T.

El martes, 21 de junio de 2016, 6:58:53 (UTC+2), Bryan Singh escribió:
I am trying to install Rails onto a new computer, running  OS X El Capitan.

I run 
rbenv install 2.3.1
 and then it errors out and I get

Downloading ruby-2.3.1.tar.bz2...

-> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.bz2

Installing ruby-2.3.1...


BUILD FAILED (OS X 10.11.4 using ruby-build 20160426)


Inspect or clean up the working tree at /var/folders/tl/8vtvj5l967v6qjh162g3k2c40000gn/T/ruby-build.20160620185954.82857

Results logged to /var/folders/tl/8vtvj5l967v6qjh162g3k2c40000gn/T/ruby-build.20160620185954.82857.log


Last 10 log lines:

installing capi-docs:         /Users/BryanSingh/.rbenv/versions/2.3.1/share/doc/ruby

The Ruby zlib extension was not compiled.

ERROR: Ruby install aborted due to missing extensions

Configure options used:

  --prefix=/Users/BryanSingh/.rbenv/versions/2.3.1

  --with-openssl-dir=/usr/local/opt/openssl

  CC=clang

  CFLAGS= -O3 -Wno-error=shorten-64-to-32 

  LDFLAGS=-L/Users/BryanSingh/.rbenv/versions/2.3.1/lib 

  CPPFLAGS=-I/Users/BryanSingh/.rbenv/versions/2.3.1/include 



I am lost here. Any Ideas? 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cd1894c5-be21-496c-8d59-fd8f4a0feab4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.