News   

failed to allocate memory
Wed, 01 Sep 2010 20:57:30 UT
Hi there! I have an app, that sometimes shows the above message at monrel.log and production.log. The app is running at production mode. mongrel.log ** Writing PID file to log/mongrel.pid [FATAL] failed to allocate memory ** Daemonized, any open files are closed. Look at log/mongrel.pid and

RAILS WILL NOT REROUTE TO NEW PAGE>>>>
Wed, 01 Sep 2010 22:06:33 UT
running virtual rails on linux mint with rails 2.3.4 im having trouble redirecting routes so here is what ive done by following tutorials: i opened rails directory and created rails_test then i ran script/server to boot mongrel i opened another terminal and changed directory to rails_test i then ran script/generate controller site index about help

belongs_to_auto_completer > undefined method `reflect_on_association'
Wed, 01 Sep 2010 22:24:26 UT
hi, im using ModelAutoCompleterHelper ([link] … elper.html) and getting the error above. now its working when i do it direclty in the controller of that model. eg: books & author > running the code in the books controller/. where its not working is when i put it eg into a "search"

[Rails3] How to send Content-type HTTP header in all my html files generated by Rails3
Wed, 01 Sep 2010 23:02:40 UT
Hello, I wish to replicate this: <?php header('Content-type: text/html; charset=utf-8'); ?> with Rails 3 in each and every view I got. I guess I should look at application.html.erb to add something. Not only for avoiding this bug: [link] but also it makes sense to send the html files generated by my views

Webrat click_link does not handle links with a query string?
Thu, 02 Sep 2010 00:31:09 UT
New to webrat. Like it but the thing which I either don't understand is in an apparent inability to handle clicking links which have a query string. This seems to happen on anything with a query string. For example: With this command: click_link "SM SERVICING" This is the error I get: test_supplement_dialog_process (MeridianlinkSupplementTest):

counter column does not get updated
Thu, 02 Sep 2010 00:37:24 UT
Hi I have In user.rb has_many :properties ,:dependent => :destroy In property.rb belongs_to :user ,:counter_cache => true inside property migration add_column :users, :properties_count, :integer, :default => 0 for some reason the counter column does not get updated. I am using resful auth. I am not sure if it's causing the problem.

find created_at in local time
Thu, 02 Sep 2010 06:13:15 UT
Hello and thanks for taking the time to read this, last night I came across two problems from which the first one - I am sure - is easy to solve. But as I am a beginner I am unable to find the solution. As I learned through the night rails stores created_at dates in utc. Sure enough my local time zone is not utc :-)

Configuring Asterisk with rails
Thu, 02 Sep 2010 07:18:33 UT
Hi all, Is there anyone who configure Asterisk with rails? Can you please suggest the best way to implement the live recording using Asterisk and rails, I seen RAGI, RAMI gems and now concentrating on telegraph plugin for implementing live recording,but the resources for all these are very very old they all are not coping with the newer versions.

Rails 3.0, setting asset_host class
Thu, 02 Sep 2010 01:32:03 UT
I am upgrading to Rails 3.0, but am having a difficult time getting it to boot. I have a custom asset host class that passes the name of the asset host into its constructor. I set this class in each of the environment configuration file. For instance, in development.rb, I have: ActionController::Base.asset_h ost = AssetHostingWithSsl.new("http: //

link_to
Thu, 02 Sep 2010 07:38:53 UT
I am trying to use an encrypted request to PayPal using my own submit button link I googled a little but, but could not find a clear & neat solution, so I ended writing this : == Rails 2.3.8 script code ==== ... <% form_tag APP_CONFIG[:paypal_url], {:id => 'form_paypal'} do %> <%= hidden_field_tag :cmd, "_s-xclick" %>

How to override form_helper module
Thu, 02 Sep 2010 09:12:00 UT
Hi, I would like to add my own form helper how can I do this without editing the Rails source code? Greg

Read embedded image from xml file
Thu, 02 Sep 2010 09:18:36 UT
Hi, I have an xml file which contains an embedded image(this is not from a rails application), i cant get a clear answer on this so basically i need to know is there a way i can read the image from the xml file and then store it to the file system somewhere? Im using paperclip as my means of managing files.

Progressbar for Slow Loading Webpages
Thu, 02 Sep 2010 10:05:07 UT
Hi, I would like to show a progress bar in the browser until my pages load. As my web pages take more that 10 seconds to load, I have decided to show the progres bar. Please help me with your ideas

controller failing to read flash
Thu, 02 Sep 2010 10:36:40 UT
I'm seeing some pretty strange behavior from the flash in my rails 2.3.8 app. I set the flash in a request, and then redirect. In the next request (the one redirected to), accessing the flash returns an empty hash, but the flash is stored and visible in the session. (rdb:21) session {:user_credentials=>"...", :session_id=>"...", :user_credentials_id=>1, :flash=>{:notice=>"Twitter

Remove array within hash
Thu, 02 Sep 2010 10:49:33 UT
My orginal hash is like as ==> hash = {"sku_id"=>[4], "brand_active"=>["true"], "salesman_active"=>["true"]} How to remove the array within hash. that means to convert the hash like ==> {"sku_id"=>4, "brand_active"=>"true", "salesman_active"=>"true"

Rails 3 web server quits with error message on booting
Thu, 02 Sep 2010 10:57:01 UT
Hi, have tried to boot the web server but keep on getting this error message. Can you help me figure out what it means? TIA rails server => Booting WEBrick => Rails 3.0.0 application starting in development on [link] => Call with -d to detach => Ctrl-C to shutdown server Exiting

Komodo Edit + rvm
Thu, 02 Sep 2010 11:21:27 UT
Folks, any of you who uses Komodo Edit for Ruby/Rails development had any experience using Komodo Edit and rvm together? I really like Komodo Edit, but my inability to put them to work along each other is really annoying... I have tried several ways and they all didn't work. Googled for it and didn't find any solution that worked...

Re: Running consecutive DOS commands in Ruby
Thu, 02 Sep 2010 11:28:47 UT
Hello Everyone, I have a situation where i have to invoke command line tools like putty_sftp and OpenSSH from ruby script for automation, as out application handles sftp uploads through these tools. So the problem is i can single DOS command in ruby and store the output(using system( ),exec( )), but here were are talking abt

unable to upload larger files
Thu, 02 Sep 2010 13:08:29 UT
hii, i am trying to upload some files to filesystem using rails application when i use small size file everything is perfect but i when goes for larger files i got error this is my code class DataFile < ActiveRecord::Base def self.save(upload) name = upload['datafile'].original_fi lename directory = "//192.168.147.17/Smruti/strea ms"

Disable Rails caching in test environment?
Thu, 02 Sep 2010 13:20:30 UT
Is there a way to make Rails.cache.fetch always execute the code block in the test environment? (disable caching) For example in my test console on Rails 3 ruby-1.9.2-rc2 > Rails.cache.fetch('foo') {'bar'} => "bar" ruby-1.9.2-rc2 > Rails.cache.fetch('foo') {'bar44'} => "bar" Caching is on. Using filestore


 1  2  3  4  5  6   »

Categories

Ads