1.9.3-p286 :001 > Time.zone.now
=> Thu, 07 Feb 2013 06:34:49 UTC +00:00
1.9.3-p286 :002 > Time.zone = 'Eastern Time (US & Canada)'
=> "Eastern Time (US & Canada)"
1.9.3-p286 :003 > Time.zone.now
=> Thu, 07 Feb 2013 01:35:00 EST -05:00
On Thu, Feb 7, 2013 at 11:24 AM, Dheeraj Kumar wrote:
> Re
Read. http://guides.rubyonrails.org/i18n.html
--
Dheeraj Kumar
On Thursday 7 February 2013 at 11:15 AM, Saravanan P wrote:
> Hello everyone,
>
> I am using rails 3.2.8.
> I want to change time zone to New York time.
> I changed following, but didn't work
>
> #config/application.rb
> conf
Hello everyone,
I am using rails 3.2.8.
I want to change time zone to New York time.
I changed following, but didn't work
#config/application.rb
config.time_zone = 'Eastern Time (US & Canada)'
config.active_record.default_timezone = 'Eastern Time (US & Canada)'
If am wrong please clarif
Also using the gem 'wkhtmltopdf_binary' will do the trick. you would no
longer need to create config/initializers/wicked_pdf.rb.
Regards
Vikram Kumar Mishra
On Mon, Feb 4, 2013 at 8:53 PM, Saravanan P wrote:
> Yes Colin Law. The path is wrong. now i corrected under
>
> config/initializers/wicked
On Wed, Feb 6, 2013 at 5:43 PM, Robert Walker wrote:
> Jason Hsu, Android developer wrote in post #1095605:
>> I tried to learn Ruby on Rails once before (in Rails 3.0, just as 3.1
>> was
>> first released) but gave up because I couldn't gain any traction. A
>> local
>> Meetup group dedicated to
Frederick Cheung wrote in post #1095286:
> On Tuesday, February 5, 2013 6:19:22 AM UTC, Ruby-Forum.com User wrote:
>>
>>
> Normally you'd have
>
> YourApplication::Application.config.secret_token = 'long random string'
>
> in an initializer, which rails should then pass through to rack. You can
> u
Jason Hsu, Android developer wrote in post #1095605:
> I tried to learn Ruby on Rails once before (in Rails 3.0, just as 3.1
> was
> first released) but gave up because I couldn't gain any traction. A
> local
> Meetup group dedicated to Ruby on Rails beginners has just popped up,
> and
> I'm consi
And I suggest you do your best to minimize the use of factories/fixtures.
In functional tests, you'll want to limit your use of factories or fixtures
only to the setup step for your functional tests.
This way you're only putting your application data in a specific state
before you exercise the sys
This was a big help. Thanks!
One thing though: I couldn't get the newly created migration file to
work initially. I kept getting an error that said "uninitialized
constant CreateDatabase." I had to rename the migration class
"CreateDataBase".
So the first line of the migration file is now:
c
AmateurCoder wrote in post #1095172:
> I managed to get this to work. I used the fixture name instead of the
> rigid
> foreign key id in the capability_test.yml fixture.
>
> Thus,
>
> #fixtures
> capability_types.yml
> one:
> name: MyString
> capability_category: one
>
> two:
> name: MyString
Just an update to this for future reference, option #1 (installing an
older version of the plugin) worked. Hopefully this helps someone in the
future.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk"
I tried to learn Ruby on Rails once before (in Rails 3.0, just as 3.1 was
first released) but gave up because I couldn't gain any traction. A local
Meetup group dedicated to Ruby on Rails beginners has just popped up, and
I'm considering giving Ruby on Rails one more chance.
One of my biggest
Jordon Bedwell wrote in post #1095589:
> It only works with Redmine 2 you'll either need to install an older
> version of the plugin (and hope it has no security issues or read the
> changelogs) or upgrade your Redmine.
I guess I assumed the plugin would be backwards compatible with
older versions
On Wed, Feb 6, 2013 at 11:24 AM, habur gate wrote:
> Jordon Bedwell wrote in post #1095584:
> 1. The plugin is called "code review" (
> http://www.redmine.org/plugins/codereview ) and I installed it to the
> /vendor/plugins directory along with the other plugins, as per the
> instructions.
It onl
Jordon Bedwell wrote in post #1095584:
> It's diagnostically irrelevant to mention that you "installed a new
> plugin" and not provide that plugin name and how you went about doing
> it.
>
>> rake db:migrate_plugins RAILS_ENV=production
>
> You should really set that inside of the env permanently r
On Wed, Feb 6, 2013 at 11:04 AM, habur gate wrote:
> I'm running Redmine on Ruby, and attempting to load a new plugin. When I
> attempt to run the command:
It's diagnostically irrelevant to mention that you "installed a new
plugin" and not provide that plugin name and how you went about doing
it.
I'm running Redmine on Ruby, and attempting to load a new plugin. When I
attempt to run the command:
rake db:migrate_plugins RAILS_ENV=production
It fails with this error:
rake aborted!
no such file to load -- initializer
/var/www/redmine/config/boot.rb:65:in `require'
/var/www/redmine/config/bo
BalaRaju Vankala wrote in post #1095355:
> Thank you Peter Hickman,
> I am new to develop web services, Can you Explain how its work with an
> Example in Rails ??. I am Searching in google, but I didn't get the
> appropriate result.
> Thanks in Advance
If you would like to see how a well designed
Perhaps you should try a Java newsgroup as this is a pure Java vacancy,
Rails only appears as a plus on the second to last bullet point.
On 5 February 2013 19:34, Robert Adcock wrote:
> Hi
>
> I get alot of job postings from client such as this one in PA:
>
>
>
> Bachelors Degree in C
Hi
I get alot of job postings from client such as this one in PA:
Bachelors Degree in Computer Science, Engineering or related technical
field is required
- Ability to self-organize and work effectively within a small team
with minimal supervision
-5+ years Web UI experience
Hi Colin,
I solved that. Just I make a directory and add files into that.
*
*
*here my code:*
save_path_file = "/home/name/dest/zip/test.zip"
folder_path = "/path/to_/folder_name"
Zip::ZipFile.open(save_path_file, Zip::ZipFile::CREATE) { |zipfile|
zipfile.mkdir("folde
On 6 February 2013 07:14, Saravanan P wrote:
> Hello everyone,
>
> I am trying zip files.
>
> save_path_file = "/home/name/dest/zip/test.zip"
>Zip::ZipFile.open(save_path_file, Zip::ZipFile::CREATE) { |zipfile|
> zipfile.add('test', "/home/my/file/destination/test.pdf")
>
On 6 February 2013 04:22, Ashokkumar Yuvarajan
wrote:
>
> Hi dude,
>
> Good Day,
>
> My some_text content like this = "TruncateHtml is just like the
> vanilla truncate rails helper , TruncateHtml is just like the
> vanilla truncate rails helper"
>
> As you said i pasted helper code in my pp_help
23 matches
Mail list logo