similar to: Namespacing conventions

Displaying 20 results from an estimated 3000 matches similar to: "Namespacing conventions"

2008 Oct 07
6
https problems
I''m having a problem but don''t know what is causing it so I don''t know exactly where to post, please bear with me. I''m trying to set up https access however whenever I go to https://url_for_site the root route renders but the url is rewritten to http://url_for_site. The ssl request shows in the apache logs but obviously no further ssl requests show up.
2008 May 29
7
when is a boolean not a boolean?
Weird problem.. I''m new to rails and ruby... maybe someone can explain what I am not getting.. Env: Mac OS X 10.5.3, Rails. 2.0.2, ruby 1.8.6 (2007-09-24 patchlevel 111) A User class created using the restful_authentication plugin A Company class (has lots of fields not really important to the problem below) Users can have many companies, entered into the User.rb model as one would
2008 Oct 24
4
Railscast 75, Observe_field and Shopping Cart
Hi all, I have the shopping cart page where a user can add items dynamically through ajax as explained in Railscast episode 75. I am using observe_field to observe the ''quantity'' and ''cost'' fields to update the total field for each item. This does not work however, for records that are added through the Ajax. How can i name the fields and observe them as i have
2009 Aug 27
8
Adding New Column
I added a new column using a migration. Once I updated the new.html.erb, edit.html.erb, show.html.erb, and the index.html.erb I brought up my web pages. There was a field to update show. I tried the update and the it was successful but the update did not show up in any of the other pages. What did I miss? I am using 2.3.3 of ror.
2009 Apr 06
11
How do I fix this? Power went down.
I was successful in reaching page 184 in the book "Agile Web Development with Rails" 3rd edition and while running the website with PostGreSQL as the backend, the power went down. The PostGreSQL database contents look OK and so do the source code files I was editing. But whenever I click on any "Add To Cart" button in the catalog, I get the following information in the
2008 Nov 25
4
Developing with Ruby 1.8.2
Hi all, I have to develop a Ruby on Rails web application using Ruby 1.8.2. Could you inform me about what are the latest versions of Rails and RubyGems that should work with Ruby 1.8.2. I am also looking for some documentation that covers these versions. What I have found so far is that most of the examples that can be found in internet do not fully work on Ruby 1.8.2 and Rails 1.1.6 since they
2009 Jan 09
2
Ruby & Javascript
Hey guys! Does anyone knows how to a ruby program communicate with the Google API, which one is written in Javascript ? I''ve heard something about a wrapper to do the communication, but i didn''t find anything yet. I know a plugin for rails can do that (geokit), but i don''t know how. There is a method (geocode) that use the javascript function to return the XML data
2009 Sep 10
2
cannot start mongrel after Snow Leopard upgrade : Wrong Architecture !!!
(MacBook Core 2 Duo.. but 32-bits kernel... upgraded to SL) Rails 2.3.4 / Ruby 1.8.7 fine with Webrick Booting WEBrick => Rails 2.3.4 application starting on http://0.0.0.0:3000 but trying to start Mongrel ( btw should be the default in dev mode when installed ?) mongrel_rails start -d /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ http11.bundle:
2009 Aug 19
11
Rails demo not showing up.
Hi, Can''t get the rails demo to run. I''ve started the webrick server. Here is what the output looks like: ----- [root@chat demo]# ruby script/server => Booting WEBrick => Rails 2.3.3 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2009-08-18 21:29:41] INFO WEBrick 1.3.1 [2009-08-18 21:29:41] INFO ruby 1.8.5
2008 Nov 07
11
Rails requires RubyGems >= 1.1.1 : problem
Hello, On my local machine (Mac OS X 10.5.5), I get the following error when I try to run script/server start : "Rails requires RubyGems >= 1.1.1 (you have 1.0.1). Please `gem update --system` and try again." The Rails app was a former 1.2.6 upgraded to 2.1, and it worked fine. I''ve run the rake rails:update command. If I create a new Rails app, it starts with the command
2009 Dec 06
9
Route error to Admin namespace
Hi. I have some apps that i have "admin" areas to the clients manager the app. This "admin" is a directory on my controllers path, like this: my_site --> app -->-->controllers -->-->-->admin And my controllers in "admin", i use the correct namespace(example for clients_controller): class Admin::ClientsController < AdminController Only doing
2008 Jun 12
7
Problem uploading files (possibly an OS X issue?)
I have a running Rails application that uploads files back to the server occasionally. I recently switched my development machine from a Linux box to OS X 10.5, using the Apache server built-in on OS X and mod_fcgid. I thought everything was fine until I recently tried to use the file upload feature. If I specify a reasonable sized (164 Kb) file for upload then I get an immediate error, before my
2010 Jan 15
3
unlinking
Quick question. How important are these? Are the errors recoverable and not a big deal, or are they actually a problem? I see a few of these randomly over the course of the day. Jan 15 10:04:04 gehenna13.rutgers.edu dovecot: IMAP(user): unlink(/rci/nqu/rci/u8/user/dovecot/.such and such maildir/.nfs00000000001e951000002b8d) failed: Device or resource busy Jan 15 10:04:04 gehenna13.rutgers.edu
2012 Mar 29
1
[LLVMdev] What is the right way to register an alias analysis pass
Hi everyone, I am wondering what is the right way to register an alias analysis pass. My alias analysis pass is implemented in a dynamic load module. As I can see, a general way to register a pass looks like: llvm::RegisterPass<Analyzer> X("rci", "RCI Pass"); However, registering a type-based analysis uses: INITIALIZE_AG_PASS(...) I think, registering an
2007 Sep 13
7
Namespacing Models
Hello everyone, Do you feel it? The little shiver down your spine when you think of "namespacing" in rails? To some thats a common feeling, to people like myself who enforce absolute organization have already thought about the need for namespaces in rails. Now I do understand this is an ongoing effort... to some degree. Controllers and routes, from my experiences work well, that being,
2010 Jun 09
1
[LLVMdev] Segmentation fault 'cause of accessing function arguments
Hi all, I am experimenting to run a pass inherited from CallGraphSCCPass. In the pass, I iterate all functions in a SCC. In each iteration, I access all arguments of a function in the following way: Function::arg_iterator PI = fun->arg_begin(), PE = fun->arg_end(); ... I have no trouble with building. However, I am troubled with "segmentation fault" when I run the pass
2009 Sep 03
9
Rails 2.3.3 has a very serious performance problem
On my Ubuntu 8.04 64 bit desktop, I created an empty Rails project and from another machine, I used ab -n 10 http://210.77.27.169:3000/ to test the performance: =========================================== When I put rails 2.3.3 under vendor/rails: Server Software: WEBrick/1.3.1 Server Hostname: 210.77.27.169 Server Port: 3000 Document Path: / Document Length:
2009 Dec 01
1
dovecot-1.2.8 imap crash (with backtrace)
In the log: Dec 1 17:24:00 postamt dovecot: IMAP(scxxxxx): /home/s/c/scxxxxx/Maildir/dovecot-uidlist: Duplicate file entry at line 1: 1259679049.M329485P1617.postamt.charite.de,S=142073,W=143959:2,Sb (uid 3157 -> 3159) Dec 1 17:24:00 postamt dovecot: IMAP(scxxxxx): Panic: file maildir-uidlist.c: line 403 (maildir_uidlist_records_array_delete): assertion failed: (pos != NULL) Dec 1 17:24:00
2013 Jan 12
1
bind tables
Hi Matteo, You could do this: dat1<-read.table(text=" year? h? len fre 1994? 5 10.5? 2 1994? 5 14.0? 2 1994? 5 11.5? 1 1994? 9 13.0? 3 1994? 9 11.5? 1 1994? 9 13.5? 5 ",sep="",header=TRUE) res<-do.call(rbind,lapply(split(dat1,dat1$fre),function(x) x[rep(row.names(x),x$fre),1:3])) row.names(res)<-1:nrow(res) ?res #?? year h? len #1? 1994 5 11.5 #2? 1994 9 11.5 #3?
2007 Sep 26
1
strange fsync errors
Hi all, I'm using dovecot since a few months and it works great. But a few days ago some coworkers mentioned that they got errormessages in their Mailapp. I searched in the logfiles and found this: Sep 14 12:07:35 Mailserv dovecot: IMAP(eckhard-ma-domain-com): fsync(/home/eckhard-ma-domain-com/mails/.INBOX.0002-Druckangebote von Druckereien.0002-schmerk