Displaying 20 results from an estimated 300 matches similar to: "WriteBoard for Programmers? (code support)"
2005 Oct 06
5
webrick seen only on local machine
I am running the webrick server (/script/server) and I would like to be
able to view the application from any browser. However, I can only see
my application from a browser opened up on the localhost. When I use
any other browser it times out. I have already modified the following
line in the /script/server file (I''ve tried the numeric ip address also)
so that it is the real ip
2005 Oct 06
3
Ruby/Rails TextMate macros
Could someone kindly send me a copy of the TextMate macros that pertain
to Ruby and Rails? I am assuming they are stored in or can be exported
to some kind of plain text file...
Sadly I am not yet able to make the leap from Linux (and Windows) to a
Mac and I am using Slickedit, which has *zero* built in support for
Ruby/Rails. I can add macros and code templates so I thought it might be
2005 Dec 18
3
automatically generate migration from db/SQL?
Hi,
I''d like to use migrations to build my initial database. Is there a gem
or plugin that will generate the migration code for initial db if I
point it at a live database or sql file?
If yes, then can you automatically generate the incremental migrations
as well?
Thanks,
Jason
2005 Dec 07
3
ActiveRecord::Observer problem
Hi all,
I have a problem with an observer. I have a simple observer...
class ActivityObserver < ActiveRecord::Observer
observe Customer
def after_create(model)
bind_params(model)
@al.action = "create"
@al.save
logger "#{model.id} : created"
end
private
def bind_params(model)
@al = ActivityLog.new
@al.user_id = User.current.id
2006 May 19
2
Doing and storing a Writeboard like diff in RoR
Hello all,
Anyone have any suggestions on how I could do and display a diffed piece of
text in a style similar to Writeboard (strikeouts etc.)
Q1) Are there any ruby gems for diff?
Q2) How would I represent the diffed text in styled HTML?
If there are existing tools, any ideas on how I could write this?
Thanks,
Vaishal
-------------- next part --------------
An HTML attachment was scrubbed...
2005 Nov 09
3
AJAX form Parameters jumbled.
Sorry for the repost but I originally posted this as a response to
another thread. I have a text field called ''phrase'' but the
parameter values always come up as nil and when I check the
parameters dumped in the error message I do not get the normal hash
you''d expect. Instead of something like
{"phrase"=>"jim"}
I get:
2005 Nov 08
2
Ruby equivalent of PHP Explode / Implode
Anyone know what the Ruby equivalent of PHP''s explode and implode are
for arrays?
- Jim
2005 Sep 19
5
switchtower beta gem?
would it be possible to get another beta gem posted for switchtower?
core rails has been getting nice regular updates to the beta gems, but
switchtower is still back at 1962.
2005 Dec 12
9
Webrick is being stupid...no info on a brand new project
I created a project, made a migration, generated scaffolding...start
up webrick and I get nothing. To simplify things, I just started
another project and generated a controller, still getting nothing.
The index page loads fine, but nothing beyond that. If I go to
anything that should give me a 404, the page is just blank. The
Webrick console just says a 500 (nothing explaining why), and
2006 Jan 15
7
Dreaded Internal 500 Error on DreamHost.
Hey guys,
I often get this problem the first time I try to deploy a rails app
on dreamhost and I''m not sure what the cause is. Basically, I have
an app that''s running fine on my local machine. I''ve uploaded the
app, configured and migrated to the latest version of the db, and set
all of the necessary directories to 755. But when I run dispatch.rb
in ssh or
2006 Mar 30
4
redirect_to("url") with post?
Is there a Rails-friendly way to redirect_to an url and post some
parameters with that?
I''ve tried:
redirect_to("http://whatever.com", { ''postme'' => ''this'' })
redirect_to("http://whatever.com", :post => { ''postme'' => ''this'' })
redirect_to("http://whatever.com", :options
2003 Jun 11
3
more on PXELinux confiuration file woes
I performed an experiment in which I had dhcpd specify a named file ("foo")
instead of
one based on a client's MAC address. Lo and behold, the same problem
occured. The PXE
stack requested and was served the right file, the kernel loaded as did the
initrd. But again, the
boot sequence stopped at "Ready."
Keep in mind that the contents of the file are the same as was in the
2006 Mar 23
5
Dirt simple .rcss templates
There was some discussion on this list recently about doing .rcss
templates in Rails using a custom template handler. I''ve come up
with a very simple way to support rcss without a handler. Turns out
all it takes is a route and an action that calls render(:file...). I
put a full write-up on my blog earlier today:
2006 Feb 10
4
Handling a relationship between users and newsletter subcriptions.
Hey Everyone!
I have a newsletter system that contains a multitude of different
newsletters. In this case three but the system allows the user to
add more. Every user can be subscribed to any amount of given
newsletters. So what I did was I created a user model, newsletter
model, and subscription model.
The subscription model belongs to one user and one newsletter.
However,
2005 Dec 15
1
Rails Gem Not Installing Properly?
Hey guys,
I get a very strange behavior when I attempt to install the Rails gem
on my server:
[root@hotaces local]# gem install rails --remote
Attempting remote installation of ''rails''
Successfully installed rails-1.0.0
Normally it asks if I want to include dependencies etc. etc. This
appears to be instant but then when I try to use the rails command it
is not there. I
2005 Dec 14
3
Advanced routing question.
Hello All,
I''m making a quick application that tracks outgoing links to referral
sites. I need to track the user and the url they went to so the
easiest way would be to take the entire url as a parameter and log
that into the database. I was wondering if I could do something like
this with routing:
http://www.example.com/user/jump/http://www.myvendor.com/referral.php?
2008 Nov 29
0
Remote Features Screencast
Hi there,
i have written a little Ruby Program called RemoteFeature (It?s more a
Hack as of now).
It lets you run Cucumber/RSpec Features that are defined in a
37Signals-Writeboard and updates
the Writeboard automagically. I have made a Screencast about this. It is
available at my blog:
http://matthiashennemeyer.com .
Or direct: http://chocolateco.de/images/remotefeaturesintro.mov
Do you have some
2006 Feb 02
6
How do I? Same Model, Different Controllers, Different Validations?
Hi all --
The simple question is: How do I set different validations for the same
Model, when accessed in different Controllers?
Here''s the scenario: I have a store/cart app, with a customer-facing
shopping cart, and a typical Admin side. The Admin side also has an
Order Entry component, where our staff can enter orders received by fax,
telephone, etc. Both the customer-facing cart
2006 Apr 16
2
Making requests in order
Hello all,
This is an interesting problem I have been working on. What I have is a
little multiuser project request tracking application. What happens is
that I log in and create projects and assign people to the projects.
Each project has steps associated with it, and the steps need to be done
in a certain order. Now, I have to request that the assigned person
perform each of the steps, and
2009 Sep 29
4
[LLVMdev] LLVM: C++ -> C
I've read that LLVM can convert from C++ to C code.
So I've used it in such a way:
I'm Windows-user so I used MinGW.
I employed this file as the test:
llvm-hello.cpp:
#include <iostream>
int main(int argc, char* argv[])
{
system("pause");
return 0;
}
result of "llvm-g++ C:\llvm_hello.cpp -o C:\llvm_hellopp.exe" worked just fine.
as a result of