Displaying 20 results from an estimated 40000 matches similar to: "image retrieval problem"
2006 Apr 06
4
Record retrieval in Many-to-many using :through not working
Hello,
I get an error while retrieving records from the following model structure.
Tables
foods - id, food
foodallergies - food_id, symptom_id, a few other columns
symptoms - id, symptom
Models
class Food < ActiveRecord::Base
has_many :foodallergies
has_many :symptoms, :through => :foodallergies
end
class Symptom < ActiveRecord::Base
has_many :foodallergies
has_many :foods,
2006 Jan 28
1
Unit Tests Take 2
Different question this time, and maybe only a core developer can answer.
In 1.0, use_instantiated_fixtures is turned off by default. What is the new
best-practice for not tying your tests to your test data?
Before you would use:
In clients.yml
first_client:
id: 1
name: Fred
In a test case:
def test_sometest
assert_equal @first_client.name, @client.name
end
2006 Jul 10
3
how to access a model from application.rb
Hi All
How do I access a model from within the application.rb?
What im tying to do is pull some data from a model (news in this case)
that must be displayed on each page within the entire application. I
know I could drop this into each controller, have each view pull it from
the controller, but thats repeating myself...
So whats the best way to do this (as I dont think models are visible
2006 Feb 15
0
file_column / Rmagick "invalid image" when image is valid
So I''ve recently finished up my first RoR application and made sure it all
worked right on the windows machine i developed it on. then deployed it on
GeekISP.com which runs Open/Free BSD. I had to jump through a few little
hoops to get it working and set the permissions for rails to create
directories, but it still doesnt work right. When i go to add a new item to
the database and try
2006 Dec 04
0
lint_to_remote for image
I have some simple code so that when you click on a thumbnail,
it''s supposed to display the image enlarged in the enlargement area.
The page looks right, but when you click on a thumb nothing happens, it
just moves up the page. Why is the href=# happening ? The generated
html comes after the sample rhtml
<%= image_tag @enlargement, :width => "279", :height =>
2006 Feb 18
5
Date formatting error
Hi All,
I''m a bit stumped. All I''m trying to do is format a date and I get an
error. Details below.
I have a partial to list all "notes" associated with a "client" with the
following code.
<% for note in @client.notes %>
<hr />
<%=h note.note_text %>
Posted on <%=h note.created_at.strftime("%I:%M") %> by <%=h
2006 Jul 27
2
ActiveRecord retrieval style? Lazy initialtization?
I''m using ActiveRecord for an Extract and Transform operation, so it is
outside of its native environment of Rails. I am running into a problem
with memory consumption when I retrieve large amounts of data. By large
amounts I am talking about roughly 12,700 records that each have a one
to many relationship with about 15 additional types of information. One
of those types happens
2006 May 11
1
Doctype -- utf-8 -- html vs xhtml
I was simply trying to write the DOCTYPE line at the top for UTF-8 and got confused.
What doctype do I use with rails for utf-8 files?
If I put in all the damn closing tags on paragraphs and hr and br and all that will the
stuff pass xhml inspection, or will rails insert something I haven'' yet noticed.
Warren
-------------- next part --------------
An HTML attachment was
2015 Jan 12
4
User and Password expiry
Hi guys,
I'm battling to understand how the Samba4 user password expiry seems
to tie in together and was hoping this could be clarified by someone
for me please?
Currently I have the following Samba4 domain policies in place...
[root at headoffice ~]# samba-tool domain passwordsettings show
Password informations for domain 'DC=abc-ho,DC=local'
Password complexity: on
Store plaintext
2006 Aug 07
2
Customizing show
I''m trying to tidy up my first rails app, and want to customize the action
''show'' (created by generating a scaffold). It''s a recipe database, and some
of the fields are not required when submitting a new recipe, such as the
"History" field. However, when I want to show that recipe, I don''t want the
column name "History" to show if
2006 Apr 20
2
Image Display Question
Hello there,
I have something odd happening to my image tags when displaying an image.
Here''s what my ''<img src>'' tags are looking like:
<img alt="2-thumb" src="/images/public/uploaded_images/2-thumb.jpg?" />
Notice the question mark at the end of the string. I have no idea where this
coming from. Here are the important parts of my
2006 Mar 03
2
FCKEditor Image uploading feature
Hello,
I followed instructions on
http://www.joshuamcharles.com/rails/fckeditor.html
Added FCKEditor to my rails app which works great, but I''m not able to
upload images using the WYSISYG editor.
Is there a way to enable this feature in rails app? If not, where is the
images folder that FCK looks into it for images, so I can upload my images
manully there?
Thanks,
- Dunnil
--------------
2006 Jul 20
0
RJS and calendar_helper troubles .... tab characters covering web page
We have implemented calendar_helper.rb to generate an ajaxified calendar
using rjs templates. Everything worked fine until we added a drop down to
select the current month. Now when select a month and the calendar refreshes
to that selected month we get a ton of ''\t'' displayed all over the page
inside what looks like to be a javascript debug print statement ( try {}
catch{} block
2013 Nov 16
1
Option transport.socket.bind-address fixes
Hello,
glusterd has option transport.socket.bind-address that enables binding
gluster to an exact IP address. This feature is necessary for HA cluster
deployment. In the initial setup everything seemed fine, but after a
little bit of testing I found several issues.
Here are the issues I found:
- NFS and selfheal daemons are started by glusterd but with volserver
hard-coded to
2011 May 25
0
Issues implementing jquery-form plugin for displaying image via an ajax call in my rails poc
Hello all,
I am trying to implement a POC wherein I can post a message + image and
get the same working via AJAX to display them both for each new entry
without the page reloading.
I am using a config of Ruby 1.8.7 and Rails 2.0.2 for project specific
purposes.. I am also using a pretty old paperclip commit from github for
this....I had to suit my proj config requirements mentioned previously..
2008 Dec 04
1
comparing SAS and R survival analysis with time-dependent covariates
Dear R-help,
I was comparing SAS (I do not know what version it is) and R (version
2.6.0 (2007-10-03) on Linux) survival analyses with time-dependent
covariates. The results differed significantly so I tried to understand
on a short example where I went wrong. The following example shows that
even when argument 'method' in R function coxph and argument 'ties' in
SAS procedure
2019 Aug 20
2
CentOS Amazon Machine Image?
On 8/20/19 4:51 PM, Tru Huynh wrote:
> On Tue, Aug 20, 2019 at 02:04:29PM -0400, Robert Moskowitz wrote:
>> I am totally new to AWS.? There was a posting here ~ a year ago
>> making claims about setting up a CentOS image on AWS.
>>
> ...
>> Any pointers greatly appreciated.
> https://www.centos.org/
> -> Get CentOS
> https://www.centos.org/download/
>
2012 Sep 03
2
Coxph not converging with continuous variable
The coxph function in R is not working for me when I use a continuous predictor in the model. Specifically, it fails to converge, even when bumping up the number of max iterations or setting reasonable initial values. The estimated Hazard ratio from the model is incorrect (verified by an AFT model). I've isolated it to the "x1" variable in the example below, which is log-normally
2006 Aug 01
0
Image uploads like Shopify
Hi, i''m building a website engine and i''m trying to create a simple way to
attach multiple images to a model. I know there''s a lot of plugins and
solutions, that''s not the problem =)
What i''m trying to achieve is a smooth way to upload images while on the
model-form. Either the model has been saved or not.
A perfect example of what i want to do is the
2005 Jan 20
0
Park/retrieval of calls
Hi!
I'd like to be able to park/pickup a call with h323.
Parking the call is easy, using ParkAndAnnounce.
But ParkAndAnnounce does not return the parkinglot in a variable.
So, I can't retrieve the call later.
To keep it simple, here is a simple scenario of what I want:
The call is established from phone 307. I enter DTMF code "#1" on phone
307. The call is then parked. I