similar to: Find records based on associated table''s colums

Displaying 20 results from an estimated 6000 matches similar to: "Find records based on associated table''s colums"

2006 Apr 03
11
Legacy database Oracle
I am new to RoR, but totally sold to the concepts, so I have decided to use RoR to develop a web client to our Oracle-based software that our customers today use with a Windows client. At first we will develope simple things like registering to receive email newsletters, and registering/updating your name, address and telephone etc. Eventually we hope to do a more full-bodied web-side client.
2006 Apr 17
7
Serve static XML files how?
Hi, a Javascript in one of my Rails templates needs to load a static XML file. I tried several places to put the actual XML file, and I also tried to make the file a rails template (tried both .rhtml and .rxml) and access it via a controller action. None of these ways worked. Does the lighttpd server know how to serve XML files, or do I need to configure it first? Or, is there a good workaround?
2008 Jan 15
5
broken URL on rspec.info
Hey folks. I was looking for the mailing list archive up on rspec.info. I clicked on the "community" link and received the URL "http://ey01-s00414/community/". This isn''t correct, obviously. The hint shows it as, "http://rspec.info/community". Where is the mailing list archive? How far back does it go? I''d really like to read back through it
2006 Apr 07
3
How to consume XMLRPC/SOAP web services in Rails?
Hi, does anybody know of any good HowTo for consuming XML-RPC and/or SOAP web services in Rails? I found some for Ruby (via soap4r/xmlrpc4r), but I was wondering whether there is something built into Rails already. So far it looks like there are methods to create web services, but not to consume them. Ingo Weiss
2006 Apr 26
2
Problem with auto-submitting AJAX form
Hello, I have a form generated with form_remote_tag that contains a selection list. I would like to auto-submit the form when the user makes a choice in the selection list, so I added an option :onchange => ''this.form.submit()'' to select_tag Now what happens is that when I make a choice, the partial template get''s rendered as expected, but not replacing the
2007 Jun 15
6
problem getting started with stubbing in rails controller specs
Hello, Ingo! I''m copying your question to a new e-mail instead of replying to try to keep message threads separate. Have you tried setting up your expectation before issuing the get statement? For example, take this out of the setup block: get ''index'', :locale => ''en'' and move it after:
2006 Apr 27
3
Where to put general utility functions?
Hi, I have a bunch of utility functions. If I put them in "controllers/application.rb" then they will be accessible from all controllers. If I put them in "helpers/application_helper.rb" then they will be accessible from all templates. But what if I need to access them from everywhere - controllers, views, even models? Where do I put them? Ingo Weiss -- Posted via
2006 Apr 04
6
Console for Testing Routes?
Hi, when the "Agile Web Development" book talks about routes, there are what looks like console transcripts like the following: URL> store @params = {:controller => ''store'', :action = ''index''} Is there something like a console for testing routes (where you could put in a url and see how rails would route it)?? Ingo -- Posted via
2005 May 13
17
modeling...
I''ve tried tackling this many ways on my own and can''t find a good solution: Breaking it down to something simplier... Venue has one address Person has one address Address belongs to state Assuming I don''t want to do tables for venue_addresses and person_addresses. What is the best way to model this using rails... big thing here is i want to be able to reuse a
2006 Apr 24
2
Console and changes to models
Hi, I am using the console a lot to test certain things. However, when I make changes to a model, the only way I found to update the console environment to reflect the changes is to shut it down and open a new console session, which can get quite annoying. Is there a better way? Thanks! Ingo Weiss -- Posted via http://www.ruby-forum.com/.
2007 Jan 03
2
error_message_on broken?
Hi, in my app, using the error_message_on form helper like this: <label for="user_name">User name:</label> <%= error_message_on ''user'', :name %> <%= f.text_field :name %> generates the following error: undefined method `errors'' for :user:Symbol I am using edge revision 5813 and the simply_helpful plugin. Is there a way to fix this?
2018 Jan 15
5
barplot that displays sums of values of 2 y colums grouped by different variables
I am trying to create a barplot displaying the sums of 2 columns of data grouped by a variable. the data is set up like this: "city" "n" "y" <br> mon 100 200 <br> tor 209 300 <br> edm 98 87 <br> mon 20 76 <br> tor 50 96 <br> edm 62 27 <br> the resulting plot should have city as the x-axis, 2 bars per city, 1 representing
2006 May 04
1
Problem caching XML files
Hi, When I turn on action cashing for actions that render as XML using builder templates, the files are cashed with an .html extension, and subsequently served as html which breaks things. Is there a way to cache files with an .xml extension? Ingo Weiss -- Posted via http://www.ruby-forum.com/.
2006 Apr 20
2
previous|next navigation question
When creating "< previous|next >"-type navigation to browse through records from a list of search results, what is the most efficient (best practices-) way to determine what the previous and next records are for a given record? Should I store the search results array and the position (index) of the current record in the session? Or restore the results array each time (running
2006 Apr 24
3
Migration: How to make a column the primary key
Hi, I would like to write a migration that creates a table without auto-generating a primary key "id" column, and then make a integer-column of my choice the primary key. How can I do this? Ingo -- Posted via http://www.ruby-forum.com/.
2018 Jan 15
0
barplot that displays sums of values of 2 y colums grouped by different variables
It is not generally advisable to get too fancy with stat functions in ggplot... things can easily get more complicated than ggplot is ready to handle when it comes to calculations. It is better to create data that corresponds directly to the graphical representations you are mapping them to. Read [1] for more on this philosophy. [1] H. Wickham, Tidy Data, Journal of Statistical Software,
2009 Nov 22
1
Metaplot Axis Annotation
Hello, We are looking to adjust the font size of the axis annotation on the graph that results from use of the metaplot() function. Metaplot seems to respond to cex and cex.lab to change those graphical parameters, but it doesn't respond to cex.axis. Is there a way to work around this by creating a customized x-axis, and if so, how? Thanks for all your help. Syntax is below. Best, Dawn
2018 Jan 15
0
barplot that displays sums of values of 2 y colums grouped by different variables
https://stackoverflow.com/questions/25070547/ggplot-side-by-side-geom-bar On Mon, Jan 15, 2018 at 9:39 PM, Kenneth Dyson <kenneth at kidscodejeunesse.org > wrote: > Hi Eric, > > Thanks for the detailed response. > This is not exactly what I want to do but is close. > I want 2 bars for each city, 1 with the sum for "yes" , the other, beside > it, with the sum for
2006 Mar 28
7
Rails 1.1 and "freeze_gems"
I''m on OS X Tiger, and just upgraded my gems. I also ran ''rake rails:update''. After that, I ran "rake freeze_gems", I recieve the following: ===================== Freezing to the gems for Rails 1.1.0 rm -rf vendor/rails mkdir -p vendor/rails cd vendor/rails Unpacked gem: ''activesupport-1.3.0'' mv activesupport-1.3.0 activesupport Unpacked
2007 Nov 15
1
''lazy'' url generation in view specs
Hi, I would like to use the ''lazy'' style of url generation in my views, omitting parameters from my calls to url_for (and named route methods) that are then filled in from the current request parameters. Example: url_for(:action => ''index'') will fill in (:controller => ''posts'') if params[:controller] is ''posts''