Displaying 20 results from an estimated 10000 matches similar to: "Understanding Common Views"
2006 Jul 22
4
Reading floating points into a field stored as Integers
Hi, I''m trying to follow the "AWDR" example of storing certain types of
numbers (in my case, percentages not money) as integers in the
database. I understand from the Depot application how to format the
output to have 2 places (or n places for that matter) decimal.
Now, I"m wondering about the input. It''s more natural for people to
enter numbers as
2006 Aug 07
8
Syntax Problem
In an *.rhtml, why do I need to add <% for product in @products %> in
order that I may call an <img class="list-image" src="<%=
product.img_url %>"/>. Is there not another way to skip the "for
product" line? I really dont want to include it. I tried @products =
product but it does not work. Can anyone help shed light on this matter?
--
Posted via
2006 Jul 04
4
Image don''t show up when i run my Rails with webrick server
can yah help me, i need to fix this...
--
Posted via http://www.ruby-forum.com/.
2006 Jul 25
12
DRYing - similar named fields, etc.
I''m sorry - just couldn''t come up with a subject that describes the
problem :(
Anyway, this is my problem. I have a long list of fields that need to
be displayed when a ''show'' is requested on the controller. I''m now
doing the list.rhtml and looking for a DRY way to do the following.
For each data item, I have 2 fields - one is the item name, the
2006 Apr 28
7
acts as drop down
Hi
Im using the acts as drop down plugin
and have this code below
acts_as_dropdown :text => "forename", :order => "forename"
It currently makes use of the forename in the option tag, how can I get
it to use the surname as well
ie somthing like ''forename'' . ''surname'' in php
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Jun 08
2
Errata in the "Four Days with Rails"
Hi, I spent more than 4 days getting done with the "Four Days
with Rails" tutorial, mostly because I ran into a few issues that
seemed to stop me in my tracks. But, after looking around, I was able
to find the problems and solve them (in whatever way I thought best) :-)
I''m posting the whole list of problems that I ran into with "Four Days
with Rails" to the list so
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 Aug 09
10
Next/ Previous record
Hi, Quick question (which means that I think there should be an easy
answer)...
When I am in the "show" view, I''d like to add 2 links, one for previous
and one for next record so that the user can go on to the next "result"
without having to go back to the ''list'' of results. However, I can''t
find my way about this problem :-S
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.
2007 Sep 09
4
InstantRails - command "rails" does not work
Hey,
I installed InstantRails 1.7 (on Windows XP Home). I unzipped it with
7-Zip in D:\InstantRails (no spaces in pathname + short pathname) to
avoid UnZip-problems. I followed the installation instructions. The
cookbook-example works fine.
But when I want to create an own project with "rails projectname", my
computer says something like "The command "rails" is either
2006 Aug 07
4
Problem with Pagination
Hi Guys,
I am trying to paginate the results from a search. When I use actual
constants in the search conditions, it works fine:
def query
@k2_result_pages, @k2_results = paginate (:k2_results,
:conditions => [''e_date >= ? AND
e_date <= ?'', ''2006-07-12'', ''2006-08-12''],
2007 Apr 01
17
Retrospectiva - Web project management on Rails
Hi!
For those who are not following the announcements on my blog (yet), a
second release candidate of Retrospectiva v1.0, which I already expect
to be production-ready, has been released recently. To get the
application even more stable I would like to invite all of you to join
the tests.
For more information, please visit http://www.retrospectiva.org.
Dimitrij
PS: If you don''t even
2007 Apr 27
5
Reading e-Mails
Hi,
I am new to ActionMailer, need to read incoming mails using rails
ActionMailer, dont know how to do it.. also need to track bounced mails.
Can anybody help me pls.
Thanks
Muralimaran Kumar.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
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 Jul 28
8
Building a Search Page as part of CRUD
I''ve been experimenting with Rails over the past couple of days and
have come across something that seems harder than it should be. In
previous frameworks I have used (WebObjects, php) a full search page
(which leads into a list view populated with search results) was part
of the CRUD that was either dynamically or statically created after
specifying table/object schema. In
2006 Jul 29
4
good css based website layouts for download???
Just wondering if anyone knows of a site where one could review a number
of website layouts (which use CSS concepts) where you could then select
the one you want and then just download the template HTML and CSS to
import directly in your application.
i.e. Gives you a decent overall look and feel straight away and then you
can concentrate on your actually dynamic application aspects.
Cheers
2007 Sep 07
7
Simple websites (no DB?) with Rails??
I have been learning Rails and building small things over the last
several months. Question I have that has been surprising difficult to
figure out is this (I know it seems somewhat nonsensical but ignore
that). I recently started getting a few requests for basic website to
be built, small businesses, stores, even individual people. How would
one about doing such a thing using Rails? I may not
2007 Mar 27
18
Textile Editor Plugin v0.1
The Textile Editor Helper (TEH) is a Javascript-based text formatting
toolbar that will be added to all of your text areas that utilize the
TEH feature. TEH was developed to provide a more WYSIWYG-ish option
for users of our Rails CMS called slate while still letting us use
Textile.
======================
= So what are the features?
======================
These are a list of the current features
2006 Jul 31
4
Login Password text field values
I have a text field that I use for logging in users. Due to the design
of my site, I don''t have room to put the word "username" in front of the
text field so I''d like to actually display it inside the field and then
have the word clear when the user clicks on it.
How could I modify something like this
<%= text_field "user", "login", :size
2006 Aug 05
3
Four Days on Rails
I''ve been reading the tutorial and I have problems with the TinyInt(1) for the attribute "item.done". I thought this thread would be the best to post it. I''m using Rails 1.1.14. When in the partial template _list_stripes appears:
<%= list_stripes["done"] == 1 ? show_image("done_ico.gif") : " " %>
it always returns the