Displaying 20 results from an estimated 4000 matches similar to: "Reading floating points into a field stored as Integers"
2006 Jul 24
4
[Slightly OT] Dealing with lost connections
Hi! I know that the web is essentially stateless, so I was wondering
about how lost connections can be managed.
I have an application that posts data to a web form. This form has a
large number of items (about 38) and I''m a bit concerned about the
connection being lost while posting the data. Is it safe to assume that
the web application will reject the transmission if the right
2006 Jul 19
12
[Slightly OT] POSTing data to a Rails App
Hi, I have a Windows program that collects data and would like to store
this data in a database that is usually accessed through Rails.
It was recommended that I try to "POST" the data to the Rails
application. I''m running into some problems trying to format my POST
string for the application. I''m trying to learn by interfacing to the
TODO application (Four Days
2006 Jul 21
1
saving money as decimals now ok?
Now that Rails core converts a database''s decimal type into a Ruby
BigDecimal type, is it ok to now store money information as a decimal
in the database (instead of an integer)?
Joe
2006 Jun 25
6
Understanding Common Views
Hi Everyone,
I''m trying to formulate my thoughts on how views work in RoR and I
understand the basic bits -
1. Every controller has its own view defined using rhtml files in the
views/[controller_name] folder.
2. There is one "view" file (rhtml) for every in the controller and has
the same name as the method.
3. For portions that are common, partials can be used - file
2006 Aug 13
3
Render nothing; go nowhere
I am building an application that requires a C++ program to access the
Rails web application using POST. Now, I just added user authentication
to the mix and it has made things more interesting.
I''m using basic authentication as shown in the AWDWR and Rails Recipes
books. I can now get my C++ program to submit the user credentials to
the login/login page. All I want the login page
2006 Jul 24
9
Mongrel: auto-reload plugins?
When developing applications, Webrick will automatically reload
controllers, models, etc. if the source changes. For obvious reasons, it
doesn''t do this for plugins, which makes it a pain to develop said plugins.
I was hoping Mongrel might have some facility to say "watch this directory
too and reload any changes". Obviously, re-init''ing all plugins would be
2006 Jul 23
4
ActionWebServices
Is there a problem with Direct Web Services on Windoze?
A routing error occurs with simple controller/api configs as
described in the AWDwR text. route.rb has a wsdl route, but
I would like to scaffold it to render either wsdl or ws
functions from localhost:3000/ctrlr/invoke or localhost:3000/ctrlr/wsdl.
--
Posted via http://www.ruby-forum.com/.
2006 Jul 24
8
Views in one controller reaching out to other controllers (best practices)
Hello all. For the purpose of my question, let''s imagine we''re building some
search functionality.
You''re a sales person (you poor sap). And you''re hanging out in the
SalesCenterController. You need to do a search for available productions;
you''ve decided to be cool and use Ajax. Do you...
a) Make a remote call to an action in your current controller
2006 Jul 23
18
help with "rake db:migrate" error please?
Hi,
Just trying to get my first database based rails app up on
dreamhost.com. The app was working prior to putting in mysql DB usage
but I''m just stuck on getting the app working with mysql. I''ve already
created the database and can connect to it manually.
Below is the error I get after running the rake migrate. It worked OK
on my home PC environment. I did change the
2006 Jun 27
11
Newb question
This isn''t affecting my app, but I''d like to know the reason why I''m
seeing this. In my layout, the following code
<%= image_tag "front.jpg", :size =>"760x175" %>
generates
<img alt="Front" height="175" src="/images/front.jpg?1122106054"
width="760" />
Where is the parameter in the
2006 Aug 14
5
Tutorial for Queries
Hi! I''m looking for a good tutorial that explains the main points of
performing queries with Rails. I do have AWDWR and have read the
section on ''find'' but I''m looking for something that goes into more
detail on how to perform queries across tables.
Abstracted from my current application, this is an example:
* person has_many sites
* site has_one room
*
2006 Jun 09
5
ActiveRBAC?
How''s the experience with using ActiveRBAC? For my "next 4 days with
rails" :P I''d like to consider adding Role-based access to the To-Do
List application in the original "four days w/ rails" tutorial.
Just wondering if ActiveRBAC would be a good place to start? Thanks!
For those who are wondering: https://activerbac.turingstudio.com/trac
Cheers
Mohit.
2006 Jul 24
3
0.9.0 Version of Gem installation problem?
Hi all. I have installed latest INSTANT RAILS i.e 1.3
When i run the following command:
c:\instantRails\ruby\bin>gem -v
it returns
0.8.11
I want it to be 0.9.0. I have downloaded gems 0.9.0 but i dont know how to
place them and where so that i get the latest version of gems. Please help
me out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 25
7
Question about Associations and Eager Loading
Hey everyone,
I''m currently making an application that allows users to create custom
fields that have attributes associated with each field.
They can then attach instances of these fields (each with their own
separate attribute instances) to their account.
So, it looks like this:
Fields
/ \
Field Instances Field Attributes
\ /
Field
2006 Jul 24
3
Customize list.rhtml to display only certain db columns
Hi,
Very new to RoR; have been a flash developer for four years or so. I
have an urgent question -- in the list.rhtml file, I only want to
display certain columns instead of dumping out all the columns in the
database. Could someone shed some light this topic? Thanks!!!
Sam
--
Posted via http://www.ruby-forum.com/.
2006 Jul 23
4
Anything like with_scope for ActionController?
There are areas of my application that "want" to use a url structure
like
domain/<human_readable_param>/<Module>/<Controller>/<Action>/<Id>
Please note that the human readable parameter I need to inject is NOT
related to the <id> being used by the action/controller pair. It''s
identifying a container object whose contains are operated
2006 Jul 22
7
Validation with has_many
I have two problems. I have a comment that has_many uploads. Before
saving the comment, I want to be sure that the upload(s) has passed
validation, but I also need to validate in other ways. For example, I
do not want to save the comment if there is no comment or upload. Or, I
do not want to save the comment if the image has been uploaded
previously (comparing md5s with past upload md5s
2006 Jul 21
3
Re-formatting email line breaks
I''m trying to re-flow email messages, removing the line breaks that
get added by mail programs so that the lines don''t exceed 72 characters.
Mail.app and Thunderbird seem to insert a space character before each
added line break.
Outlook replaces new lines in the email with double \n''s, then uses
single \n''s for the ''soft'' line breaks.
2006 Aug 14
2
Change password
Is there an addition to the Rails Recipe or the method in AWDWR to allow
a user to change his/ her password? I have put something together that
does all the work again - mostly because I''m not sure how to leverage on
methods like ''password='' that are defined in the model. Has anyone got
a ready sample that I could learn from?
Right now, I''m basically
2006 Jul 20
7
Can this be done?
What I want: I get a normal http request containing a URL from a remote
server.
Instead of redirecting to that URL, I want to load it into an iframe on
an existing page.
I''ve tried a number of approaches with no success.
Can anybody suggest a good way to do this? Alternatively, if you can say
"this is bloody impossible, because....", that would be helpful, too.
--Al Evans