similar to: News posting system without a database

Displaying 20 results from an estimated 1100 matches similar to: "News posting system without a database"

2007 May 15
2
openURI not capturing pages from the same rails app
Hi, I am using standard Ruby library openURI to capture the HTML code from other pages. The problem openURI does not work for capturing pages from the same rails application. Here is the code: class CdCreatorController < ApplicationController require ''open-uri'' def generate lines = [] file = open("http://127.0.0.1:3001/cd_creator/product/1"){ |f|
2006 Aug 02
3
using migration--newbie
Hi all, (I''m new with RoR) I''m using a migratio to import data into a database but nothing is being happens. I''m importing strings from a parsed file. this is what I have: controller: class UploadController < ApplicationController def create table = { } params[:localized_string][:data].each_line do |line| if line =~ /^\s* " (.*?) "
2006 Apr 05
1
send_file VS. send_data (performance)
Does anybody know if there is a big performance/time cost difference between these two methods of serving a file: ------------------------------- #1 ----------------------------------------- send_file "test.png", :type => ''image/png'', :disposition => ''inline'' ------------------------------- #2------------------------------------------
2009 Apr 21
1
[PATCH server] add dns setup clarification in installer
This clarifies the dns setup section in the installer and notifies to use the bundled dns setup if the management server is not in the upstream dns already --- installer/bin/ovirt-installer | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/installer/bin/ovirt-installer b/installer/bin/ovirt-installer index 2d88886..862c5e2 100755 --- a/installer/bin/ovirt-installer +++
2007 Jun 06
2
lookup in CSV recipe
I await Luke''s node settings implementation with interest. At the moment however, I have this sort of ugliness: $site = $hostname ? { fred => "opsera", barney => "bedrock", default => "unknown site", ... } So I''ve knocked up this little function to use CSV files instead. Now I can just do: $site =
2006 Jul 26
5
Monitor traffic/bandwidth by mountpoint
I saw a request for this feature raised several years ago. Has this been implemented yet? If not, how are users monitoring traffic on port 8000, and even better can you split it up by mountpoint? I want to know how much traffic our icecast clients are using each month. Thank you, Shannon
2008 Jan 28
9
Nested matchers
We''re encountering a failure with Mocha 0.5.6. We had this expectation: game_version.expects(:attributes=).with(:game_file => kind_of(GameFile), :game_id => @game.id) This expectation was passing with 0.5.5, but fails with 0.5.6. I added this test to parameter_matcher_acceptance_test.rb, which passes in 0.5.5 and fails in 0.5.6 def test_should_match_nested_parameters
2006 Dec 21
10
versioning of win32 versus ruby gems
I know we already mentioned this before on the list but I couldn''t find it in the archives. Is there a way to differentiate the versions for ruby/mswin32 so that I could run a command like: # sudo gem install mongrel --source=http://mongrel.rubyforge.org/releases/ --include-dependencies --version 1.0 and have it not prompt me like this: Select which gem to install for your platform
2006 Jul 14
7
A handful of basic Rails questions
Alright, I''ve been programming with Rails for a little while now, and I really like what I see. I made a simple application for our clients that need to be able to view their personal and contact information, the ports they''re buying through our ISP, and communicate back and forth with us. The thing is - the application is pretty messy because I have been hired as a new
2009 Sep 12
11
Installing a lot of packages
How can I install a lot (more than 800) of APT packages using an easy way in puppet? I mean, using some file.txt where I put there the packages I want to install and my package resource get the list . Is it possible? Or do I have to put all packages in the package resource? regards, Israel. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed
2010 Jan 20
2
Using ruby-1.9.x with Puppet 0.25.x
I read somewhere recently about problems with Puppet and Ruby 1.9. I''m wondering if this is still an issue? Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For
2006 Jun 15
11
Calling all of 7 million entries
Hi everyone, David R. here; I''m new to this mailing list but I''ve been incredibly wrapped up in Ruby on Rails for the last two or three months. I''ve built a fully functional web application and we''re about to roll it out to our customers. However, my supervisor would like to add just one more feature to it: listing the number of online users for a particular
2009 Nov 24
0
xrcise now works
Hi Mario, The following change to outputter.rb did work for me. It looks like adding a routine to string should also work but it didn''t for me. Thanks for your help. -Philip ===== from RubyForge ========== Date: 2009-11-18 00:25 Sender: Konstantin Shabanov After changing ''each'' method to ''each_line'' in outputter.rb on lines 39 and 46 xrcise code
2006 Mar 12
2
Find all the methods on a object in an irb session?
How can I find all the methods on an object from withing irb? Thanks, Joe
2011 Oct 24
0
Announce: Puppet 2.6.12 Available [security update]
Puppet 2.6.12 is a security update release in the 2.6.x branch. The only changes since 2.6.11 are security fixes for the following vulnerability: * CVE-2011-3872, Altnames Vulnerability For more details on this vulnerability, follow the link on our blog post: http://puppetlabs.com/blog/important-security-announcement-altnames-vulnerability/ Other information available at:
2009 May 29
0
[PATCH server] last patch to implement remote freeipa
This completes the last few requirements for remote ipa, one thing to note is that when using remote ipa we do not allow the choice of creating a local dns server on the ovirt node. --- installer/bin/ovirt-installer | 22 ++++++++++++++++--- .../modules/ovirt/files/ovirt-remote-ipa.conf | 1 + installer/modules/ovirt/manifests/freeipa.pp | 10 +++++++++
2006 Jul 21
1
Newbie Question about Ruby on rails---cant upload data
Hi everybody, Ruby on Rails is my first programming lenguage...it looks to me like i''m missing the big picture. I''m trying to upload a file into a database. In my app. my user needs to select a file and upload it...however I only want him to upload certain information from that file. I have written code to parse only string tables from that file. For example, the table
2006 Aug 08
3
How can i read a properties file in RoR
Hi, Iam a nubie, i wanna know how can i load/read a .properties file in to my rails application. For example i have a property file where i have defined the spanish equivalants of some english words as follows user Name:nombre del usuario user Code :c?digo del usuario likewise. now , where should i store this properties file in the directory structure and how can i read these in to my
2010 Mar 31
5
undefined method `each' for "":String
I implemented creating an object within another object according to this Railscast: http://railscasts.com/episodes/74-complex-forms-part-2 but I''m getting this error after I submit. Any ideas? undefined method `each'' for "":String -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2009 Sep 17
1
[PATCH server] oVirt server single network installer
Updates the installer to handle the scenario in which the guest and admin networks are the same by using an alternative httpd conf. Verified to work (eg oVirt managed vms are bootable) on the oVirt appliance so far. --- conf/ovirt-server.conf | 88 -------------------- installer/bin/ovirt-installer | 11 +--