similar to: Organizing the db/migrate folder

Displaying 20 results from an estimated 1100 matches similar to: "Organizing the db/migrate folder"

2006 Aug 17
0
RDF - Carmen?
I didn''t want to hijack Martin''s thread, but Carmen said a couple of interesting [original thread below]. Carmen - since you''ve switched off of SQL what do you use as you data- store? Have integrated AR? I''ve been seeing the world in 3+NF for more than 15 years now. Would you mind speaking to this topic a little, and if you''ve any rails
2006 Jun 14
5
InstantRails Lost connection to MySQL server
Hiall, I just tried out InstantRails version 1.3a. After a virgin install and filling the fresh mysql db with my app schema, I tried runningthe app with webrick, only to see the infamous "Lost connection to mysql server" for every action. What is it that I''m doing wrong? I also have mysql 5 installed on my machine, but the service is stopped while experimenting with
2006 May 09
3
Named link to image
Hiall, Call me stupid if you like .,) but it seems i can''t figure out how to get a named link using a combination of link_to and image_tag. What I need is basically a link displaying a name along with some image to indicate status (open,working,finished). I found no combination of link_to and image_tag that accepts a name, this seems to be solely used for making whole images into links
2006 May 18
6
Form actions with additional parameters
Hiall, I want to give the action of a form an additional parameters but can''t figure out how to do it. My code looks like this <%= start_form_tag :action => ''create'', next_step => true %> <%= render :partial => ''user_form'' %> <%= render :partial => ''community_form'' %> <%= submit_tag
2006 May 01
7
ActiveRecord and Database Views
Hiall, If I have say 10 tables that i would like to wrap up in 1 view to manipulate data inside these tables, do I then need 10 model.rb files for all 10 tables plus 1 for the view, or do I just need 1 model.rb file for the view ? cheers Martin
2006 May 14
6
file and directory layout below app/models
Hiall, Is it possible to organize my model files below app/models into subfolders? E.g. I would like to put admin related models into their own subfolder. This kind of structuring works for controllers and views (scaffolding creates the right subfolder-model mappings), but app/models always stays flat. I''d really like to be able to group my code into logical, well packages :-) Yes, I
2006 May 14
4
script/console on windows
Hiall, When I try to run script/console from a windows command line like f:\rails_app\ruby script\console I get the following error: F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- initializer (LoadError) from F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require''
2006 May 23
3
image_tag problem
Hiall, I want to make an image_tag from within a controller in order to be able to present a link (with a status image) in a view. Here is my controller method (in file webca_controller.rb, hence WebcaController) def untouched_status_image_tag image_tag("open", { :alt => "Offen", :title => "Offen", :size => "12x12", :class =>
2006 Jun 22
1
[site] mog
so becky said mog is out, i remeber seeing it about a year ago on craigslist but didnt apply since it sounded like a last.fm ripoff and why waste time reinventing a wheel?..anyways, im wondering if it performs ok for anyone? it keeps freezing up on my trying to edit the page. sometimes a response comes back after about 10 seconds. im only guessing it runs rails, based on the gratuitous use of
2006 May 22
15
collection_select default selected value
Hiall, Unfortunately I just can''t find out how to setup a default selected value when using collection_select. My call is like so: <%= collection_select(:consultant, :lastname, @consultants, :id, :lastname, { :selected => @current_consultant.id } ) %> which is not working, I debugged so far that I know that @current_consultant.id contains the correct value. Any tips? cheers
2012 Nov 09
2
sink() doesn't work
Oftentimes I want to make outputs to be displayed on the R console. However, after I execute a program with a sink command in it the R console becomes unresponsive. Meaning that the following occurs in R console: > source("Program_containing_sink.R") > a<-1 > a > >sink() >a > R help says that sink() will bring output back to the console but i's not
2004 Jun 18
2
C7960 g729 question
I have multiple voiceage g729 licenses installed on a RH9 box, and have a remote C7960 configured to use it (low bandwidth). In calls like: Remote C7960 -> g729 -> asterisk -> g711 -> C7960 the audio is oftentimes rather choppy. Changing the remote 7960 to use g711 seems to eliminate/reduce the choppyness. Any ideas on what might be behind this?
2006 May 16
1
saving a has_one association question
Hiall, Say I have class User has_one :community end class Community belongs_to :user end Will the following work and both save user and community if validation doesn''t fail? user = params[:user] user.community = params[:community] user.save Or do I have to do something like the following user = params[:user] if user.save user.community = params[:community] end to be on the
2006 May 17
1
Experiences with ModelSecurity
Hiall, I would be very interested in your opinions on the ModelSecurity plugin by Bruce Perens. http://perens.com/FreeSoftware/ModelSecurity/Tutorial.html Some time ago, I read on a few pages that it is the way to go, on this list however, I didn''t read much about it. Apart from it''s security level, quoted from comments in source code: # FIX: At the moment we only support
2013 May 24
1
How to rewrite header from X-Original-To to Delivered-To
HiAll, How to rewrite mail headers from X-Original-To to Delivered-To using sieve script. I am using Dovecot-2.2 and Pigeonhole 0.4. -- Thanks & Regards Kiran Reddy Lead Systems Administrator Unicel Technologies Pvt. Ltd. | C-Block | Second Floor | Vaishnavi Silicon Terrace, 30/1 | Hosur Main Road | Koramangala | Bangalore- 560095 Mobile (+91) 7829007447 Skype My status
2010 Jun 07
3
Subsetting subsets of data.frames
Hey Everyone, I have been stumped by this all day. Basically, I have a data.frame of multiple columns. Of concern are "id" & "date" For some reason, oftentimes there are duplicates of data with the same date. I would like to remove the duplicates per different id (removing duplicate dates for the entire data.frame would leave nothing since different id's all have
2006 Jun 12
6
Storing "money" in databases
Hiall, I''m wondering what''s common practice when dealing with money values stored in databases. I like the idea of storing all the values as integers, i.e. all the values in eurocents not euros. Then I need to multiply all values the users enter by 100 before storing them in the database. Now the question is, what''s the most efficient and dryest way to do this?
2009 Feb 13
2
Identifying graphics files produced by R
Oftentimes, I see graphs on the web that *look* like they've been produced by R, but I can never be sure. Or can I? I notice that PostScript files include a "%%%Creator: R Software" line, but do R graphics drivers encode any identifying information in GIF or PNG files more commonly used on the web? And of so, would such evidence necessarily be obliterated in post-processing (e.g
2006 May 04
4
why a perfectly fine iax2 host becomes UNREACHABLE?
I've got this low-ping 100%-up dsl connection between two asterisk 1.2.7.1 servers. And oftentimes one of them would declare its opposite UNREACHABLE. Why can this happen? The host stanzas in iax.conf have raw IP's, so no DNS monkey business here.. An inquiring mind wants to know.
2004 Jul 09
1
IVR Menu and VoiceMail quality
I have really tried to do my best googling and wiki-reading before asking this question. I couldn't find the answers there so I throw myself at the mercy of the list... I get excellent quality for SIP -> PSTN and PSTN -> SIP calls, however when I or anyone else calls from PSTN -> * the voice menus are oftentimes very choppy. Sometimes they are absolutely perfect and I cannot tell