Displaying 20 results from an estimated 400 matches similar to: "has a field through an association"
2011 Jan 11
9
Can I omit respond_with.
If I don''t want xml results but only html can I omit respond_with in
some actions?
For example index from:
respond_with(@sectors = Sector.all)
becomes only
@sectors = Sector.all
isn''t it?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2011 Jan 23
1
Force UTF-8 encoding
I''m writing an upload script for contact management, but having encoding
issues:
#=> Encoding::UndefinedConversionError: "\xFA" from ASCII-8BIT to UTF-8
I will not always know the encoding supplied, and this is the result of
`some_string.encode("UTF-8")`
I have also tried .force_encoding("UTF-8") to no avail. For now I''m
simply trying to
2011 Feb 27
1
Database abstraction
Hi all -
I've been working on a lite ORM and database abstraction package for R.
Formatting complex queries by hand has always been an error-prone hassle, so
I've tried to do away with that as much as possible, instead, using R
objects to represent elements of a database system (statements, clauses,
operators, functions, fields, tables, etc.). R5 classes have made the
development of this
2011 Jan 12
14
WickedPDF vs PDFKit vs. Prawn, etc.
Thoughts on using WickedPDF vs PDFKit vs. Prawn or others for developing
forms with dynamic content?
TIA,
Garrett Lancaster
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2011 Aug 03
1
Gem and/or meta_where problem
I''ve installed the gem "meta_where" (and it reported back:
"Succeeded") but when I use the example in a search method of a
controller:
Person.where(:some_field.matches => ''%something%'')
there is an error that it doesn''t know the method ''matches'', so what
still needs to be done to properly activate the gem and make its
2011 Jan 10
8
Creating a Dynamic/Custom form
I am pretty new at rails and seem to be stuck on an issue.
Trying to find a way to get me app admin to create a form on our rails
app. These would include:
- Select form control type
- Select required validation
- Select price change if selected
How should I even start going at this?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2008 Apr 02
9
Problem getting the most recent has_many associated object
I can''t get my view to display the most recent parameters from an
associated object in a view... here is a birds-eye of my app:
I have two models, Ferms and Kinetics. Ferm has_many :kinetics,
Kinetic belongs_to :ferm. Kinetic has the fields ferm_id, brix and
temp.
In my ferms/index view I have a table listing the attributes of each
ferm instance. I would like to display the most recent
2007 Mar 13
13
validates_inclusion_of disabling
Hello all.
I have a problem using validates_inclusion_of. I need to switch off some
validations during a migration period, is there a way?
I tried to use if, with a static method of one of my models, but the
behaviour is something strange
It seems that the static method should be in a string to be evaluated.
And the order of the elements in the if is counting...
:if => (:some_field
2008 Aug 27
5
VALIDATION QUESTION
I''m trying to validate a record before save. I''m using one controller
in this case furnii where I have all my calls. The problem is that, the
form containing the field I''m trying to validate resides in the furnii
views. I tried to add validates_presence_of :content (the field name) in
both the furnii model and the ratecomment model but it does not work. I
know there
2006 Aug 15
2
Unit Testing Problem
I''m having a bit of difficulty when testing my models, I''ve read a few
times the testing chapter in Agile web development with rails and at
http://manuals.rubyonrails.com/read/chapter/27 but i''m still unsure of
what I should be testing.
Firstly I''d like to be able to test things like my email validation
using lines such as
assert User.new(:email =>
2006 Apr 26
5
Best way to split forms into steps?
I have a form with about 30+ fields, which the client is wanting to
separate into 3 pages/steps - just wondering what is the best way to go
about this, specifically remembering data entered, from one page to
another, and making sure the various bits of data are validated
correclty, error messages outputted etc etc...
is there a best practice method for doing this?
--
Posted via
2006 Jan 03
3
Can I map 2 tables into one class
Can I map 2 tables into one class?
Is there any pattern, e.g. using ActiveRecord aggregation?
Thanks
Szczepan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060103/fa2aed7c/attachment.html
2013 Mar 11
4
Understanding lustre setup ..
Hello,
I have been reading
http://wiki.lustre.org/images/1/1b/Hadoop_wp_v0.4.2.pdf for setting up
Hadoop over lustre.
Generally in hadoop setup, we have 1 Namenode and various number of datanodes.
If I want to setup the same keeping Lustre as backend, in the document
it is mentioned that:
".............Our experiments run on cluster with 8 nodes in total,
one is mds/namenode, the rest are
2006 Aug 24
2
files-from and filter from one file?
Hi,
I'm sorry if this is a dumb question, but I have tried millions of
combinations of settings.
Is it possible to somehow combine --files-from and --filter into one file,
so that I can use one here-document?
Using the + directive in --filter seems to always give me slightly different
results.
What I do now is without --files-from, but it means the directory tree is
not recreated on the
2005 Dec 28
6
coverage does not work
Hi,
I''ve installed coverage (gem install coverage) and try to run tests with
-rcoverage option on, but following error occurs:
ruby: No such file to load -- coverage (LoadError)
I try:
ruby -rcoverage mytest.rb
1. I have rubygems in evn var RUBYOPT
2. Gem seems to be installed properly (I can read doc via gems, the files
exist in the ../gem/... dirs)
Does anyone know what is the
2006 Jan 17
2
link_to_remote() - can I post data with it???
can I post data with link_to_remote(),
link_to() has special option :post => true and viola
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060117/2a0a00af/attachment.html
2005 Dec 26
2
special characters in rhtml
Is there any pattern how to use non-english fonts right in rhtml file? Using
ą is frustrating.
Thanks,
Szczepan
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2004 Aug 06
1
Repost: Directory server.
Hi,
Is there any documentation or possibly an open directory server
project underway?
<p>
--
Colin Faber
(303) 736-5160
fpsn.net, Inc.
* Black holes are where God divided by zero. *
--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request@xiph.org'
containing
2004 Oct 16
2
moving functions between namespaces
Hi all,
I'm a newbie wrt R but that's okay, since I don't do any programming
in R. What I do need to do is to administrate the activites of an R
programmer, so my questions will be related to adminning R as opposed
to statistcal programming. I hope that's okay with y'all. :-)
I've been through most of the docs that I could find (the PDFs,
StatsRUs, etc.) and I've
2003 Apr 10
1
(OT) functional?
Hi folks,
sorry for the posting but I haven't received a message from this list
in almost a week and was wondering if my account was not working
correctly.
--
Colin Faber
(303) 859-1491
fpsn.net, Inc.
* Black holes are where God divided by zero. *