Displaying 20 results from an estimated 30000 matches similar to: "What is the entry-point for a rails app?"
2006 Apr 05
7
Regex for splitting string
Hi
We have a search website where the user can type in individual words
separated by spaces and/or phrases enclosed in single or double quotes.
We are looking for a way to obtain a list of words and phrases from the
search string.
Can someone help?
Thanks,
Yash
--
Posted via http://www.ruby-forum.com/.
2006 Mar 01
6
How to retrieve attributes from HABTM?
We have tables Users and Communities linked by has_an_belongs_to_many.
The join table Communities_Users has additional fields [ is_active,
is_blocked, join_date] etc. These are populated using
@user.push_with_attributes(:is_active => true,...).
Later on how do we update or retrieve the attributes in the link table
for a given user or a community with doing it explicitly using SQL?
Thanks,
2006 Feb 08
2
How to install RailsCron?
Hi,
I would like to start running a background procedure once a user logs in
to his account on the website. For this I am considering using the
RailsCron object. However, I am not able to download it. I am new to
Rails. Can someone give me the excat command I should use to get
RailsCron?
Can someone suggest a better way of running a procedure in the
background?
Thanks
-Yash
--
Posted via
2006 Feb 11
1
How to POST raw data?
Hi,
I know that ActionController::AbstractRequest provides a raw_post method
that reads the data that has been posted to the HTTP server as raw data.
I am trying to create a rails application that POSTs raw XML data to a
web page that reads raw data.
I would like to know how to POST raw data to an HTTP server using Ruby
on Rails.
Can you help me with this?
Thanks,
Yash
--
Posted via
2006 Feb 11
1
Instructions required for RailsCron
Hi,
I am writing a client-server rails app. The client and server maintain
similar databases. Periodically, I would like them to synchronize their
databases. For this, in the application, once the user logs in, I want
to spawn a background process at the client that first sends the
client''s new data and then receives the server''s new data.
I am thinking of using RailsCron for
2006 Jan 22
23
calculate users age
i know it''s probably really simple, how do i work out someone''s age if i
have their d.o.b. stored as a date in my db.
cheers
--
Posted via http://www.ruby-forum.com/.
2006 Feb 19
1
script/console & script/runner
Hello,
Is it possible to call a method in a controller with script/console or
script/runner?
--
Jonas Elfstr?m
2006 Feb 04
2
Looking for tools developed on Rails
Hi,
We are trying to setup a tool developed on Ruby on
Rails, that provides a Project Dashboard, with the
following features:
Abstract of the project.
Task list
Calendar
The task list should provide:
Task Name
Owner
Start and end dates
%completion
Dependency, etc.
The Calendar should provide
Day, Week and month views.
Can you please suggest some tools with available
source code that loosely
2006 Mar 15
9
Mongrel Web Server 0.3.11 -- Edge Rails and Win32Compliant
I don''t think there''s a way to do that other than using a proxy
(ISAPI_REWRITE) or just a server-side redirect. I''d love to be proven
wrong though.
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of frazer horn
Sent: Wednesday, March 15, 2006 9:13 AM
To: rails@lists.rubyonrails.org
Subject:
2006 Feb 25
1
How to pre-populate Edit form in rails?
In our rails application, there is a model called Essay and another
called Tag. Essay ''has_and_belongs_to_many'' tags. When a user CREATEs an
essay, he gives the text in a text field which corresponds to a database
column in the essays table. The _form.rhtml also provides a text area
that lets the user tag the essay with keywords. The text area does not
correspond directly to
2006 Mar 22
1
How to go DRY?
We are creating a website for creating and maintaining communities. When
members of a community are listed, we show their summary in a TABLE. So
we have written a _member.rhtml partial to show this summary for that
member. To show the memberlist we do
render :partial => member, :collection => @members
Now the problem is the row displayed for every member by the _member
partial, may differ
2006 Apr 29
3
undefined class/module
Hi,
We are running a Rails application in development mode. Intermittenly we
get an error on some pages, saying : undefine class/module User. If we
refresh the page, the error goes away and we see the html correctly
rendered. User is a model defined in the models directory and has been
listed in application.rb as model :user.
I am suprised by the fact that this happens only occasionally. Can
2006 Mar 13
1
How to run rails app exe on port other than 3000?
We have managed to package our rails application into an exe using the
steps given at:
http://www.erikveen.dds.nl/distributingrubyapplications/rails.html
When we start the exe, it starts on port 3000. But when we will be
installing it at the clients'' site, this may not work as some other
rails application may be running on that port.
What can we do to configure the port on which the
2007 Jul 02
0
How to use MS Word features from Rails app running as servic
Hi,
I am using features of MS Word 2003 on Win XP in my rails application.
The server has Win XP
installed. I am able to open a document, save as HTML etc. if I run the
app using
mongrel_rails start ... on command prompt.
I use the Win32OLE support for Ruby:
doc = WIN32OLE.new(''Word.Application'')
However, at the deployment site, I have configured the app to run as a
Windows
2006 Mar 23
1
Using regional settings from windows registry
Hi,
On our web pages, we would like to show all dates and times in the
format defined on the server''s registry. The rails application will be
installed in different countries, hence we want to cater to all types
date and time formats by picking it from the registry.
The formats used in the registry are such as M/d/yyyy, whereas the Time
class in Ruby uses formats such as %m/%d/%Y.
2009 Sep 10
1
function to solve equations
Hi,
I am trying to solve this equation prob = exp(-3.33 + 0.0102*x)/(1+exp(-3.33 + 0.0102*x)). I want to write a function where I call the function and enter the 'prob' value and the output should be the 'x'. Im not sure how to write this. I have a basic structure but im not sure if its correct.
calc <- function(prob){
prob <- exp(-3.33+0.0102*x)/(1+exp(-3.33 + 0.0102*x))
2009 Oct 07
2
[LLVMdev] DebugFactory
On Thu, Oct 1, 2009 at 8:34 PM, Talin <viridia at gmail.com> wrote:
> Here is a patch that does just that.
This does not work. I'm getting
llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp: In member function
‘llvm::DIType clang::CodeGen::CGDebugInfo::CreateQualifiedType(clang::QualType,
llvm::DICompileUnit)’:
/Users/yash/clean/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:225:
error:
2006 Apr 02
1
Looking for helpers/components/controllers for form wizards
Hi,
In our project, we have a number of forms to be filled by the users. The
forms are presented as wizards - each form as a number of steps. I would
like to know whether there is an existing helper developed by the Rails
community that can let me create wizards easily. We also want all
wizards to have the same look and feel.
Thanks,
Yash
--
Posted via http://www.ruby-forum.com/.
2006 Apr 04
1
Keeping 2 different sessions active together
Hi,
Our web application shows pages from 2 different web servers. Each web
server has a session timeout period of 30 min. If I access pages from
just one server for 30 min without touching any page from server2, the
session on server2 expires. Then when I access a page from server2, I
get a warning saying the session is expired. For a normal user, we are
projecting the whole app to be a
2006 Apr 18
1
Pagination links with separator
Hi,
I have @result_pages and @results obtained from paginate in an action. I
want to show the pages as
1 | 2 | 3 | 4 >
The fifth page will show:
< 5 | 6 | 7 | 8 >
and so on.
How exactly do I render the paginator to give this effect? I guess I
will have to use pagination_links_each. But being new to Rails, I need
help.
Thanks,
Yash
--
Posted via http://www.ruby-forum.com/.