similar to: dry model collections in other models

Displaying 20 results from an estimated 30000 matches similar to: "dry model collections in other models"

2010 Jun 30
2
One time shot feed params from development
I got a confirmation on my development system that should have gone to the production system and so I have a ''Post'' set of data which I know from my development logs that I want to feed to my production system. Is there some easy way to do this in the console or do I have to try to recreate it with wget or a web browser? Craig -- This message has been scanned for viruses and
2009 Aug 04
2
Passenger, switching from development to production
It appears my http setup is working but I am getting an error when I try to use a web browser to connect. All I have done so far is to change the setting from what was working in httpd.conf and move it to ssl.conf (adding some ssl things) and I am using the same directory/set of files that was working for development. The error... Ruby on Rails application could not be started Phusion Passenger
2010 Aug 17
5
apache rewrite
Is there some easy way to rewrite just the base URL to another URL but leave all other URL's unmolested? i.e. http://www.example.com = rewrite to another URL http://www.example.com/files = deliver from the assigned subdirectory obviously this... Redirect / http://www.other_url.com redirects everything and I don't want /files to be redirected Craig -- This message has been scanned
2006 Jul 21
1
Partial, Table Layout, Multiple Controllers/Models... DRY?
Hi, I am almost embarrased to ask this and I am sure it has been answered previously but the search feature is down on ruby-forum so I am not finding the answer. I have several controllers (leads, orders, activities, etc...). I have a ton of repeated html in each of the views for these controllers. For example, my list view has the same table/tr/td and for..in type of code and it just
2006 Feb 08
7
DRY methodology
because I am a grasshopper... Now that I can sort my ''list''...is there a logical way of not repeating myself to having essentially the same list view with multiple sorts? i.e. def list_cl # ordered by clients last name @placement_pages, @placements = paginate( :placements, :include => [:client], :order_by =>
2008 Mar 19
3
ApplicationHelper
When working with views, I use instance methods of ApplicationHelper: # app/helpers/application_helper.rb: module ApplicationHelper def distribute(total, min, cutof, list) [1,2,3] end end # app/views/planner/_mta_colors.rhtml: <td> <% ... dist = distribute(total_v_px, 4, 0, colors.collect{|color| color[1]}) ... %> So to test the distribute method in ApplicationHelper, I have
2005 Nov 13
1
Can't connect to smb share that's a mounted file system
On Sat, 2005-11-12 at 20:44 -0600, Mike Hanby wrote: > Howdy, the path statement in the smb.conf file is using Unix pathing. > > path = /backup > > I tried adding the "guest only = yes" to the [netfiles] section and it > didn't change anything. > > Here's my [netfiles] section again: > [netfiles] > comment = Network file storage space >
2006 Mar 25
3
Rails Plugins: Why to register your own functionality with send()?
Hi there, I have seen in the file column plugin ( http://www.kanthak.net/opensource/file_column/) from Sebastian Kanthak or David''s acts_as_taggable plugin that to register my functionality I need to do something like this: ApplicationHelper.send(:include, InPlaceEditAssociations) I am wondering why not: (a) module ApplicationHelper include InPlaceEditAssociatons end or: (b)
2006 Sep 29
2
ApplicationHelper is not a parent of SomeHelper?
i have: # file application_helper.rb module ApplicationHelper def load_components @right_sidebar = ''some stuffs'' end end # file user_public/blog_helper.rb module UserPublic::BlogHelper def load_components ApplicationHelper.load_components @right_sidebar += ''{blog archive}'' end end the problem is, i want to load the
2006 Sep 03
2
Undefined method "xxx" of a model when calling a helper
Hi all I''m creating a shop page. I have a cart model that looks like the following: class Cart attr_reader :line_items def get_line_item id @line_items.each do |l| return l if l.id == id end end def initialize @line_items = [] end def empty! initialize end def empty? return true if @line_items.empty? false end end And I have some
2006 May 07
0
NoMethodError trying to get ApplicationHelper method from a functional test
I am a little confused by the includes I suspect. In the book, it states that runtime environment will load the directories app, app/models, app/controllers, app/helpers, app/apis, components, config, lib, vendor and vendor/rails/*. However, when I try to access my "current_project" public method, it fails with a NoMethodError. What is even stranger is that I can use reflection to find
2003 Oct 03
0
Re: LARTC digest, Vol 1 #1392 - 4 msgs
Здравствуйте lartc-request, Friday, October 03, 2003, 8:44:37 AM, you wrote: lrmdn> Send LARTC mailing list submissions to lrmdn> lartc@mailman.ds9a.nl lrmdn> To subscribe or unsubscribe via the World Wide Web, visit lrmdn> http://mailman.ds9a.nl/mailman/listinfo/lartc lrmdn> or, via email, send a message with subject or body ''help'' to lrmdn>
2010 Dec 28
5
Fixing filenames with directories with spaces in the names
Should be simple and perhaps I'm tired but it's not coming to me. In its simplest form... for old in `cat "$FILENAME"`;do echo "$old" dirname "$old" new="$(echo $old | sed 's/\*/\-/')" done I'm trying to take out some stupid Macintosh things - in this case filenames with asterisks but I have others like tilde's and probably
2009 Nov 25
2
PHP updates
For the 2 threads going on about PHP 5.2/5.3... CentOS tracks upstream whose version is... php-5.1.6-23.2.el5_3 If you want something newer, you have to go off the beaten path. try this...(as root) wget http://dev.centos.org/centos/5/CentOS-Testing.repo mv CentOS-Testing.repo /etc/yum.repos.d yum --enablerepo=c5-testing check-update and this would allow to update to version 5.2.9-2.el5.centos
2015 May 28
1
[LLVMdev] Easiest way to collect dynamic Instruction execution counts?
Machine instructions, yes. You didn't say bitcode instruction. Though it amounts to the same thing, as all instructions in the same basic block have the same execution count and the basic blocks should correspond. On Thu, May 28, 2015 at 5:18 PM, Stephen Thomas < stephen.warner.thomas at gmail.com> wrote: > Bruce, > > Can valgrind give me the execution counts for each
2007 Aug 27
2
issue with edge rails and urls
I just switched our project over to Edge Rails, and I''m running into this problem with all of my helper methods that call _url methods: NoMethodError in ''ApplicationHelper home_link should generate a valid home link when User.current and Profile.current is not set'' You have a nil object when you didn''t expect it! You might have expected an instance of
2005 Oct 21
2
FW: POLEDIT replacement?
only 1 thing, get the latest custom samba template from here. it's a must have.. ;-) its good to read this page. http://www.pcc-services.com/custom_poledit.html direct link to the file. http://www.pcc-services.com/files/winpoledit/custom.zip and your welkom, hope you like it. Louis -----Oorspronkelijk bericht----- Van: robert.walland@r-kb.si [mailto:robert.walland@r-kb.si]
2005 Oct 07
2
2 httpd configs
I normally don't do this - haven't got any traction on taroon list and I want to get a backup going. I have an RHEL 3 server and it is serving some simple web stuff (horde/imp/etc.) I have installed BrightStor ArcServe and I need it to also serve some web pages. The ArcServe runs on a different port but has it's own httpd.conf with the distribution. The last time I did it, it was
2006 Feb 20
0
Securing the Model
Hello, I have a security schema for all kinds of items in my application (pages, logs, links, ...). Basically it works as follows : readable_by can be either ''a'' (all) ''g'' (group) or ''u'' (owner). If it is group then rgroup_id is set. writable_by can be either ''a'', ''g'' or ''u''. If it is
2018 Mar 21
0
Replication Failure Issue
Hai, Very important things are missing here in this one.. smb.conf Samba from sources or os provided? In case of last, centos 7.1 to 7.4 is samba 4.1.12 to 4.6.2 https://wiki.centos.org/Manuals/ReleaseNotes/CentOS7 Various packages have been rebased. Some of those are openLDAP, samba, .... And yes, as Carlos suggested, do check your firewalling also. Maybe samba didnt change but