Displaying 20 results from an estimated 20000 matches similar to: "Getting the name of the calling controller"
2006 Jan 30
5
Problems migrating from Postgres to MySQL
Hello everyone,
I''m trying to migrate a working app from Postgres to MySQL, and I''m
trying to use a migration to get it done rather than alter all my
database table creation scripts to MySQL syntax. I''ve done loads of
work with Postgres, but am a real newbie with MySQL...
I did a ''rake db_schema_dump'' from my Postgres app, and got a nice
looking
2006 Aug 18
11
Anyone used MS Access as db?
If yes, how do I set it up in the yml file? Thanks.
- amateur Railist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060818/6690a4e2/attachment.html
2010 Aug 16
3
R with CouchDB?
Hello all,
I'm kind of surprised that searching the archives and Googling haven't given
me a result for this...
I've got a large amount of data that is a good fit for CouchDB; it's
reasonably unstructured, and such structure that exists is quite fluid. I
want to slice the data in many different ways, some of which really don't
fit well with a relational database model. I
2006 Feb 25
5
MySQL client ran out of memory
I''m getting the following error unexpectedly for my rails app. I just
exported the databae from dreamhost and imported it on textdrive for
my rails app.
Mysql::Error: MySQL client ran out of memory: SELECT COUNT(*) FROM
comments WHERE (comments.listing_id = 2666)
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in
2005 Jul 26
14
Rails VS ASP 2.0 on IIS and Windows 2003 server
I''m working in a complex web app that could have 1000+ users within the next
year. It must be run on Windows 2003. Current db is SqlServer 2000. Company
is deciding between Rails and ASP 2.0. I''d like to get some feedback on
which would be the best to develop in. ( I prefer Rails :)
1. Will Rails be stable in that environment? Will it work with IIS?
2. Is it better for
2006 Jun 02
3
Running Instant Rails from USB key
Hello everyone,
It''s a particularly slow Friday afternoon here, so time to try stuff out...
I''ve just installed Instant Rails on a USB key, thinking it would be a
great way of showing off Rails in general, giving a progress update to
customers, trying out ideas, and generally all the other benefits that
come from having a completely portable environment.
However, the 168Mb of
2006 Apr 24
5
New RBAC Plug-In for Rails
Hi,
I just finished writing this plug-in. I''ve been using rails for awhile
but this is my first time extracting some code and writing it as a
plug-in and I''d love to hear to some feedback. Thanks.
http://mitchellhashimoto.com/rails/role-based-access-control-plug-in-for-rails/
-Mitchell
--
Posted via http://www.ruby-forum.com/.
2006 Feb 13
10
Clearing browser history?
Hello everyone,
I''ve got an app where, when a user logs out, I want the browser
history to be cleared so no-one can go back and see what the user was
doing.
I remember seeing info on how to do this before - can''t find it in
Google (the search terms "clear", "browser" and "history" aren''t that
great!), which means I can''t remember
2006 Mar 14
8
"Database" as a collection of XML docs
Hello everyone,
A new project I''m starting on has a "database" consisting of many 10s
of thousands of XML documents. They all conform to a common schema.
The project consists pretty much exclusively of searching and
presenting existing data - there''s no need (for the forseeable future)
to be able to input or update XML documents in the database. Unlike
(say) blog
2010 Feb 08
3
Double render/redirect philosophy
Ok, I think I understand why RoR will flag an attempt double render in
an action.
What I don''t understand is the philosophy of render and redirect_to.
Specifically, why isn''t a return implicit in both those methods?
Or, I guess, more to the point ... what are the advantages of writing
code in the action after a render/redirect_to?
--
Posted via http://www.ruby-forum.com/.
--
2006 Sep 22
6
Using after_filter to control rendering on actions
I have a common failure page that I may need to render to upon failing
some test that occurs in an after_filter method.
I''d like to use the after_filter to take over the control of the
rendering, like so:
def test_for_validity
some_boolean = my_test
return render(:action => ''disqualified'') unless some_boolean
@success_controller ||= controller_name
2006 Apr 23
3
Just a couple questions on how I should go about this.
I''m working on my personal site. The design is complete and I want to
integrate some rails into it. I''ve done a few small things before, but
compared to them this is big.
I need a simple blog with categories and comments and an archive. I want a
nice posting system, but don''t want it in HTML. Is there something I can add
or make, kind of like BBCODE?
I pretty much know
2006 Mar 23
1
Graphing library?
Hello everyone,
I''m looking to produce some graphs broadly like the ones shown here:
http://www.dotnetcharting.com/gallery/List.aspx?gal=6 No prize for
guessing what type of app it is...
This particular graphing library is .NET-specific, but as you can see
the results it produces are really nice. More than likely, they''re
several notches above what I''ll be able to
2005 Dec 02
1
Bug with Postgres and/or HABTM?
Hello list,
I think I''ve found a bug in the way Rails is talking to my Postgres DB
when recording HABTM data.
My join_table looks like this:
id serial primary key,
tablea_id integer references tablea(id),
tableb_id integer references tableb(id),
other_attributes...
When Rails writes to join_table, I''d expect it to do something like:
INSERT INTO join_table (tablea_id,
2006 Feb 01
1
Scaffolding Extensions plugin and multiple HABTMs
Hello list,
For a school management application, I''ve got three tables:
- people
- subjects
- roles (e.g. ''Teacher'', ''Student'', ''Tutor'', ''Lecturer'', ...)
The HABTM relationship is 3-way, with the links being stored in the
people_roles_subjects table. A person can have a role in a subject,
but may have different
2006 Feb 24
18
I need more bling!
Hello everyone,
I just showed a friend a prototype of a site offering a service I''m
trying to sell (sorry, not on the Internet yet - he saw it at my
house).
His comment: "Looks like it does everything, but also looks pretty
ugly. You''re not going to wow anybody with that". Sitting back and
thinking about it, he''s dead right - it needs some bling to make it
2005 Nov 17
4
Portable R?
Hello list,
A short time ago, I found
http://johnhaller.com/jh/useful_stuff/portable_apps_suite/, which
contains basically a complete set of office tools that can be run
*entirely* from a USB key. The concept is:
- find a Windows PC
- put in your USB key
- run OpenOffice, Firefox, Gaim, Nvu, Thunderbird, ... directly from
your USB key, with no app installation required
- save your files wherever
2006 Mar 13
6
lame newbie question: how to pass instance variables
This should be obvious - but I''m a long-time non-web app programmer and
new to rails.
I simply want to put something in a variable in one action and access it
in another.
It''s like this, I''m doing a simple photo gallery/managment app, and I
have two actions in my picture_controller:
The first one scans the picture directory and creates a new object in
the pictures
2007 Feb 28
7
Find works in view but not controller
Part of my application should show a list of all users on the system who
agreed to have their details revealed. So, I have an action like this:
def view_users
@users = User.find(:all,:conditions=>"reveal = 1",:order=>"login
DESC")
end
In the associated view, @users is an object of nilclass and the app.
breaks as it tries to iterate over the @users array. However, if I
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