Displaying 20 results from an estimated 2000 matches similar to: "column.name question...."
2006 Apr 18
4
IN-PLACE FORM EDITING
Ive been following the rails recipes (great book) and wanted to have a
larger a text field when editing in place.
The chapter it mentions that I can "force the InPlaceEditor to create
either a text ?eld or a <textarea> ?eld, using the :rows option to
in_place_editor_?eld( ). Then any value greater than 1 will tell
InPlaceEditor to generate a <textarea>." It
2006 Apr 11
4
find(params[:id]) question
Admin Controller -
def show
@wizard = Wizard.find(params[:id])
end
View -
<td><%= link_to ''Show'', :action => ''show'', :id => wizard %></td>
URL -
http://localhost:3000/admin/show/1
I want user_name (one of the columns in the database) instead of the id
to show
For example:
2006 May 16
5
Google Map problems
I followed the setup from http://cartographer.rubyforge.org/
but keep getting this error -
NoMethodError in Sandbox#map
Showing app/views/layouts/sandbox.rhtml where line #4 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.[]
Extracted source (around line #4):
1: <html>
2: <head>
2006 Apr 14
6
Login Generator with Extensible authorisation
I want my web app to have a signup/login generator but have 2 tiers of
users - normal and premium. There seems to be lots of login generator
and engines with scattered tutorials about extensible authorisation and
Im lost as which is the ''best'' or most ''easy to use'' solution. Anyone
had success in this area?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to
this php one?
http://tips-scripts.com/?tip=form_mail#tip
Or is it easier just to use the php with RoR?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 14
1
file column validates_format_of
Been manually testing file column with success except it seems to upload
the file before validating it. Also .pdf files (which shouldn''t even
validate) crash WEBrick. What am I missing to solve these problems?
(apart from a brain!)
validates_presence_of :title, :file
validates_format_of :file, :with => %r{.(gif|jpg|png)$}i,
:message => "File must end with .jpg, .gif or
2006 May 04
1
Ferret and rails question
Is ferret the best way to implement a search option in your app?
If so what is a best way to do it - the plugin or the wiki tutorial?
--
Posted via http://www.ruby-forum.com/.
2006 May 05
1
hows does engines effect the default action mailer?
I installed engines to my app and now my salted login (which is not an
engine) wont send emails. Bit confused... :S
--
Posted via http://www.ruby-forum.com/.
2006 Jan 30
1
how to get column_for_attribute?
Hi all,
In the code below I don''t understand:
1. Why I have to prepend overriden method content_columns with "self."
to get it working?
2. Why column_for_attribute method is not working (no such method?) even
if SomeTable is subclass of ActiveRecord::Base which have public
column_for_attribute method?
> class SomeTable < ActiveRecord::Base
>
> def
2006 Apr 27
2
"for column in..." not picking up _id columns
My code executes fully:
<% for column in ModelName.content_columns %>
<th><%= column.human_name %></th>
<% end %>
but it does not pick up any columns in my model''s table that end in
"_id".
Is this by design?
Is there a helper method that will reference the related tables? Or
will I need to code the column titles and detail records by
2006 Jun 16
2
Problem with User Login from Agile Web Development
I am trying to use an expanded version of the User Login from the Agile
Web Development with Rails book. It takes the user name and password
but then says "Invalid user/password combination". Looking at the log
everything seems to be fine until it sends the query to MySQL. The
query shows that the name is '''' instead of the name that was passed to
the self.login
2005 Sep 17
1
Export to Excel
I need to export some data to an Excel file and found
a reference in the HowTo section of the Rails Wiki.
Followed it to the letter: added "export" action to
controller, copied export.rxml and changed in
accordance to model.
When I call the export action I keep getting
"undefined method `content_columns'' for #<Employee".
The ActiveRecord mention content_columns
2007 Sep 19
1
Fwd: win32-service of win32utils
Any ideas folks?
Thanks,
Dan
---------- Forwarded message ----------
From: Kay <serphakay at hotmail.com>
Date: Sep 19, 2007 10:52 AM
Subject: win32-service of win32utils
To: djberg96 at gmail.com
I''m writing some scripts to programmatically change the user account
of running a windows service. So I downloaded one of the windows
utilities, win32-service, and wrote my scripts.
2007 Dec 09
2
Questions about rails 2.0
Hi, i''ve found some questions on the rails blog which haven''t any
answer. Because i''m interested too i paste them here:
# gonzo on 07 Dec 22:10:
Does CSRF protection work with forms that are fully cached?
# rugal on 08 Dec 20:14:
Great job guys!
Just an information about migrations.
will t.timestamps create both created_at and updated_at? And for _on ?
2006 Mar 24
2
Access to session data
Greetings,
This, I hope, is a simply answered question.
Based on Agile Web Development with Rails (depot application), I''m
developing a single table application for contact info. There is only
an admin side to this, so there''s always authentication.
Part of the info record (member) is changed_by and changed_at which I
automatically want updated. Changed_at looks after
2005 Dec 30
3
Too many columns for list.rhtml to display on one page
I''ve gone once through the Agile book and am now attempting my own rails
app. I''ve created a table named ''volunteers'' with over 15 columns. The
problem is the default list.rhtml that is created with the scaffold,
shows all the columns. I only want to show 4 of them with the list
view.
Where would I start to only return a handfull of columns to the
2006 Sep 30
2
Dovecot accepts squirrelmail, rejects fetchmail
Hello,
this is a follow-up to the thread "Fetchmail can't talk to dovecot"
http://www.dovecot.org/list/dovecot/2006-September/016477.html
Increasing the log level I get this in the log filed:
Sep 30 15:04:19 fm dovecot: Dovecot v1.0.rc7 starting up
Sep 30 15:04:22 fm dovecot: auth(default): passwd-file /etc/dovecot_user_file: Read 1 users
Sep 30 15:05:05 fm dovecot: auth(default):
2006 Feb 01
4
Where is the send() function?
Hi,
in the tutorial "4 Days on Rails" the following code fragment is used:
,----
| <% for column in Category.content_columns %>
| <td><%=h category.send(column.name) %></td>
| <% end %>
`----
Apparently, the send() function returns the column value by name, but
where does this function comes from? Unfortunately, neither the tutorial
nor the API
2006 Feb 03
1
Only iterating over the middle content_columns?
Standard behavior for the list action is to use content_columns to get
all the fields of a model and then do something with them. I''d like to
ignore some of them and iteratre over the rest. For instance I may have
A B C D ... X Y Z and I''d like to do something special with A and B and
then Y and Z, but in the middle I''d definitely like a loop to say
2006 Aug 18
3
Understanding MVC - view customization after using scaffolds
All,
I have ordered AWDWR and am anxiously awaiting its arrival. In the
meantime I still am playing with ROR using radrails. I have a few
questions ...
I create a table named customers with the following details:
Field Type Null Key Default Extra
id int(11) NO PRI auto_increment
customer_name varchar(50) NO
inbound_retention int(11) NO
outbound_retention int(11) NO
unix_admin_email