similar to: Changing module name - help!

Displaying 20 results from an estimated 3000 matches similar to: "Changing module name - help!"

2006 Oct 18
3
[Bug] Seg Faulting in index.rb:718
Hey, Ferret is repeatedly seg-faulting my mongrel servers on the same line: /usr/local/lib/ruby/gems/1.8/gems/ferret-0.10.11/lib/ferret/index.rb:718: [BUG] Segmentation fault ruby 1.8.5 (2006-08-25) [i686-linux] I''m using ferret 0.10.11. I haven''t had the time to dig into yet, it''s on the backburner right now - I just keep several spare servers and restart them
2006 Sep 22
15
Win XP / Ferret & Acts_as_ferret .dump problem
Hey, Has anyone managed to bypass or fix the ferret''s .dump method problem? When I include acts_as_ferret my whole rails app just blows up because of Ferret''s .dump method. Ex: --- print "\t hello".dump >> "\t hello">Exit code: 0 --- --- require ''ferret'' print "\t hello".dump >> " hello"(NUL
2006 May 12
7
RJS and page.select collection size
I need to implement a conditional in my RJS template which looks something like: if (page.select(''row1'').first != null) page << "new TableRow.MoveAfter(''row1'', ''newrow'');" else page << "new TableRow.MoveAfter(''row2'', ''newrow'');" end Now, dumb question.. My
2006 May 28
14
Lightbox and RJS
Hi, I am trying to include lightbox functionality in my app, but there is a slight complication. Apparently lightbox initializes all the links to lightbox events on page load. However, in my case, some new links to lightbox events will be rendered to the page through ajax events (obviously this means after the page loads). So I figure I need to find a way to call lightbox''s
2010 Apr 03
0
Deployment problem with apache + fastcgi
Hi! I''m from Russia. It''s my first post in this forum. Execuse for my bad language, but i hope you''re help me! I try to deploy rails app on apache + fastcgi hosting. .htaccess file contents: AddHandler fcgid-script .fcgi AddHandler cgi-script .cgi Options +FollowSymLinks +ExecCGI RewriteEngine On RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA]
2006 Feb 08
2
URL rewriting
Here is the scenario I am trying to achieve. Basically, I want to run the action "show" from my controller, without adding the "show/id". Standard: http://www.domain.com/controllerName/show/id I would like: http://www.domain.com/controllerName/randomstring (where randomstring is a field in my model/table, that is equivalent to a GUID -> and unique). I''m confused
2006 Apr 20
4
Many to Many Category structure with itself
Basically, I''m trying to have a table called "categories" have a many to many relationship with itself. But I also want each catagory to be able to be "copied" into another category so it is essentially a child category to more than one parent. To me the obvious way of doing this is by creating another table called category_maps (and a model called CategoryMap).
2006 Aug 08
12
Rails (internals) architectural question
Hi Another newbe here..... I was wondering if someone could please help me understand the controllers/view inner working in Production 1. If xxx_controller.rb is only loaded once does it mean there is only one instance of Controller serving all requests? 2. If only one instance of controller is there then how are controllers instance variables protected from data corruption when serving multiple
2006 Mar 29
4
Scaffold generator: create vs. new
Can anyone supply me with a simple, succinct explanation of what the difference is between the "new" controller and the "create" controller that the scaffold generator produces? I run: > script/generate scaffold modelname controllername And now I need to do some work inside the controllername.rb file. For example, pulling a list from another database table to supply
2004 Jul 22
0
Researching Improved safety 4 Samba/LDAP
Some more research for my howto at http://mandrake.vmlinuz.ca/bin/view/Main/SambaThreeDomainController Some folks have let me know that it is a bad thing to have your samba server access the database as the root dn. All well and good but how do I fix this? I have the default acls listed below which look pretty good but don't I need a special user or something? It would help if I understood
2006 May 24
1
Automagic number of views/clicks?
Hey, Just wondering.. Are there are any automagic constructs in rails for keeping track of number of views/clicks associated with the record? For example, created_at and updated_at are automagically updated on edit/new actions, are there any similar constructs for clicks/views of the record? Thanks. Ilya -- Posted via http://www.ruby-forum.com/.
2006 Feb 07
5
homepage instead of welcome page?
Got a noob question for ya... When I visit http://localhost:3000/ I get the nice "Welcome to rails" page. To get to a controller I have to go to: http://localhost:3000/controllername What if I don''t want the welcome message and want / to resolve to a controller? How do I set that up? Thanks, Dave -- Posted via http://www.ruby-forum.com/.
2008 Apr 07
0
Crash uploading file on HTTPS/SSL rails project
Hi all, I''ve a rails project which successfully uploads images on the development server but fails to do it on production. The only difference is that the production server is on https/ssl. On the browser the error message is the followin: ''Application error Rails application failed to start properly'' Whereas in the log/fastcgi.crash.log i found the followin error
2006 May 02
1
Accessing Parameters - Params (nil)
I''m trying to render a component that pulls information based on a parameter that is passed by a link_to item, but my params object is nil for the following code in the controller: records = ControllerName.find(params[:id]) but the error page also has this: Parameters: {"id"=>"7"} I''ve tried to access it (in the controller) using: variable =
2006 Jan 25
4
html special char conversion
I''ve stucked to such problem: I have html entities in database, after using scaffold I''ve got these chars not converted (I have strictly " and & in page source). It is what I need, but after making ./script/generate scaffold modelname controllername (recreating controller) I''ve got all special chars converted into entities like (&quot and others). How can
2006 Jul 17
1
acts_as_tree and :include
hello there, i have a model that uses acts_as_tree: >class GbEntry < ActiveRecord::Base > acts_as_tree :order => ''created_at DESC'' >end and i want it to paginate, including all children to avoid unnecessary db queries: > @gb_entry_pages, @gb_entries = > paginate :gb_entries, :per_page => 15, :order => ''created_at DESC'',
2006 Jul 31
1
How to get result of following SQL Query in Ruby?
Hi, I have 2 tables as follows:- _________________ ________________ ____________ taggings | |stores | | tags | -----------------| |---------------| |------------| --tag_id | |--store_id | |tag_id | --store_id | |--store_name | |tag_name | --user_id | |---------------| |------------| -----------------| Now I want to execute
2001 Apr 26
2
wine doesn't work
Hi I am a biginer on wine and Linux RH7.1 my wine doesn't work, what ever i did . Does any one have a an idea what the followin error message means and how i could make wine works .... $ wine /c/windows/notepad.exe Invoking /opt/wine/bin/wine.bin /c/windows/notepad.exe ... Wine failed with return code 1 /usr/bin/wine: line 6: 9594 Terminated tail -f $log_name $ Thanks :-)
2004 May 16
2
(no subject)
Hello I am trying to configure Asterisk on RedHat Linux 9 with one X100P one port card and one USB one port FXS card. I can modprobe wcusb but ztcfg always return ZT_CHANCONFIG failed on channel 2: No such device or address (6) error message. Also unable to config outgoing call using SIP SoftPhone. Any working examples of configuration files is highly appreciated. I mentoned followin lines
2003 May 07
1
levels
Hello, Thanks to all for the previus answer. I want to be more detailed: I have a dataset called gm20011231 with 1304 observations (or records). I want to create a subset with the followin command j2<-gm20011231[1:10,"V4"] the levels of "V4" is 1304 and the and the length(j2) is 10. Do you know how to obtain a j2 with level 10? Thank you Fabrizio