Tim Gossett wrote:
Radiant http://github.com/radiant/radiant/tree is the way to go.
*snip*
Hi Tim
That's a fantastic list of things you've created. Any chance that I
could urge you to add it to the Radiant CMS Summer Reboot Documentation
[1] project? It may go in as something like
This is the line that caused the error: %= link_to_remote 'Click
me', :url = {:controller = appointments, :action =
array}, :with = test%. These are the lines that follow the
error:
TypeError (exception object expected):
/app/controllers/appointments_controller.rb:72:in `raise'
On Sep 9, 8:56 am, Zhao Yi [EMAIL PROTECTED] wrote:
I created a rails application by rails demo command and generated a
controller script/generate controller Say. Then I created a file in
app/view/say/hello.html.erb. I added a method hello in
app/controllers/say_controller.rb. From a
On Sep 9, 6:50 am, William Lefevre [EMAIL PROTECTED]
wrote:
Greetings,
I just started a new Rails app and it's dead in the
water. It appears to be something to do with my lighttpd server or
fastcgi. The error is '500 - internal server error'.
Well the fact that I doesn't work with
I don't see, why you want to use this Paginator thing (whatever
exactly it is)
Ferret doesn't need it for pagination, you can give it the per_page
page
options and that's all to it.
btw: Sphinx would most likely do a better job. Ferret is nice, until
you
try to make it run in production.
On Sep 9, 5:18 am, tashfeen.ekram [EMAIL PROTECTED] wrote:
i am trying to implement the pagination solution for ferret provided
at the following
link:http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial#what
i am getting the following error:
uninitialized constant
Frederick Cheung wrote:
On Sep 9, 8:56�am, Zhao Yi [EMAIL PROTECTED] wrote:
What's wrong with my application? Did I forget anything?
Sounds like you don't have the sqlite3-ruby gem (and you'll need the
sqlite3 library as well)
Fred
Where can I get it? How can I install it?
--
Posted via
Alex,
It might be a name-convention issue... If your module/class is called
'ActiveExt' then the corresponding .rb file should be named
active_ext.rb (without the underline, it corresponds to the class
'Activeext' without the capital E)
Try to either rename your model or your files accordingly.
Yea, you were right, its been a long daybut i have finally figured
it out. Thanks for your help. For anyone who is trying to convert a
javascript array to a ruby array and pass the array to the controller
you can follow this advice:
create a javascript function that returns the array with
hi forum,
I am new to rails, and i am just getting my hang of things.
Problem,
how do you pass content captured in a form to a custom method?
I have the following form:
% form_for :message, @message, :url = { :action = 'reply'} do |f|
%
table cellpadding=4 cellspacing=5
tr
Is there anyway to generate a serialized attribute like this one
inside the fixture :
knowledge: --- \n- 1\n- 3\n- 5\n- 7\n
I tried
knowledge: %= [1, 3, 5, 7].to_yaml %
doesn't not work... so I do it using irb, then copy/paste..
thanks
erwin
Can you muck around with Javascript instead?
http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html?page=4
On Sep 9, 10:22 am, PeteSalty [EMAIL PROTECTED] wrote:
Maybe, although we try not to put anything into session if we can help
it. Thanks for the idea
On 9 Sep 2008, at 11:10, Erwin wrote:
Is there anyway to generate a serialized attribute like this one
inside the fixture :
knowledge: --- \n- 1\n- 3\n- 5\n- 7\n
I tried
knowledge: %= [1, 3, 5, 7].to_yaml %
The difference between these two is that the second is actually sticking
Hi
I get this error:
Showing workouts/show.html.erb where line #14 raised:
undefined method `activities_path' for #ActionView::Base:0x720828
Extracted source (around line #14):
11:
12: h1Add an exercise to this Workout/h1
13: div id=submitArea class=formEnd
14: %
'fraid that doesnt work either.
NoMethodError in Workouts#show
Showing workouts/show.html.erb where line #15 raised:
undefined method `nil_class_workout_path' for #ActionView::Base:
0x1637cf8
Extracted source (around line #15):
12: h1Add an activity to this Workout/h1
13: div
On 9 Sep 2008, at 14:27, Rodrigo Rosenfeld Rosas wrote:
I tried to ask this question once in Ruby-talk and inside another
post in
this list. No one answered me and I doubt anyone is able to answer it.
So, I tried changing the subject in a weird, although correct
question, to
see if
Actually, yes I tried running the migration from the beginning with a
clean db (and backwards for good measure) and it works just fine and
dandy in development. * scratches head *
On Sep 9, 10:08 am, Rodrigo Rosenfeld Rosas [EMAIL PROTECTED]
wrote:
Did you try to:
rake db:migrate VERSION=0
Hi,
logger.info request.headers is giving me the headers of the request in
development mode. However I can't get the same on production mode.
Any hints?
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because
Alright, nevermind. Apparently for whatever reason the
restful_authentication plugin directory didn't make it into my git
repo. :-(
On Sep 9, 10:10 am, Jeremy [EMAIL PROTECTED] wrote:
Actually, yes I tried running the migration from the beginning with a
clean db (and backwards for good
Anyway, you should check this one:
/apps/listjutsu/releases/20080909133505/app/models/user.rb:4
Rodrigo.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
veering off topic... what does Ferret is nice, until you try to make it run
in production. mean exactly? i've seen mention that ferret has problems in
production but i don't understand what other use you'd want it for. just to
develop an idea but never put into production?
agreed on sphinx being
Thank you both!
-- Milan Novota
2008/8/22 Jeffrey L. Taylor [EMAIL PROTECTED]
Quoting nightcoder [EMAIL PROTECTED]:
Hi everyone.
Here is my problem:
I've been working on a RoR project for a while (its quite big
project), but have to stop the work on it for some half a year. Now
Check out restful authentication plugin, and the role authentication
plugin that works as an addition
On Sep 9, 8:50 am, max [EMAIL PROTECTED] wrote:
I'm working on a rather large app, where we have more than 7 user
roles, each of which will have permission to access different parts of
the
Fred THANK YOU. I never would have found that on my own and it's good to
learn something more about how Rails works.
Thanks,
William
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Thanks Thorsten
or use logger.error instead of logger.info
I did try that one also with the same result...
Regards
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
Danimal wrote:
Matt,
I find that the best is to just reset to the beginning with any change
of sort or pagination. It's too confusing not to. For example, if you
are showing 5 records per page in a 50 record set and you are on page
4, then you suddenly switch to 25 records per page, what
I have a model, Account, with many Courses. I want to display the course
codes for those courses as comma delimited text in an attribute of the
account. So I would have
Account ActiveRecord::Base
has_many :courses
def get_course_codes_as_text
courses.each {|course| something something but I
On Tue, Sep 9, 2008 at 10:11 PM, John Small
[EMAIL PROTECTED] wrote:
I have a model, Account, with many Courses. I want to display the course
codes for those courses as comma delimited text in an attribute of the
account. So I would have
Account ActiveRecord::Base
has_many :courses
def
On Tue, Sep 9, 2008 at 9:46 AM, Shiv N Gautam [EMAIL PROTECTED] wrote:
On Tue, Sep 9, 2008 at 10:11 PM, John Small
[EMAIL PROTECTED] wrote:
I have a model, Account, with many Courses. I want to display the course
codes for those courses as comma delimited text in an attribute of the
See if I qualify:
courses.collect {|c| c.code}.join(,)
John Small wrote:
I have a model, Account, with many Courses. I want to display the course
codes for those courses as comma delimited text in an attribute of the
account. So I would have
Account ActiveRecord::Base
has_many :courses
I am actually using the restful_acl, and restul_authentication
plugins, but they are really falling short
On Sep 9, 11:28 am, elFonso [EMAIL PROTECTED] wrote:
Check out restful authentication plugin, and the role authentication
plugin that works as an addition
On Sep 9, 8:50 am, max [EMAIL
Hello!
In my controller, I have a model that preloads (or eager loads?) its
respective child members.
class Parent ApplicationController
def show
@parent = Parent.find(:all, :include = :children)
end
end
In my view, I need to display a specific child by searching for it in
On 9 Sep 2008, at 18:19, Michael Lavrisha wrote:
Hello!
In my controller, I have a model that preloads (or eager loads?) its
respective child members.
class Parent ApplicationController
def show
@parent = Parent.find(:all, :include = :children)
end
end
In my view, I need to
I have this method that it's soul purpose is to toggle a field and then
redisplay a chech_box helper and a image signifying that the field has
been updated. My issue, however, is that this method is to toggle
several different field all via one method simply because the code to do
so was all the
Hello, first off sorry i am new and a dumbass but I need help with
this.
In my view/application file i have some css and I want a certain bit
of css displayed if a user is in one controller but another type of
css to be display if they are in another controller. I made up the
following which
Dan Paul wrote:
Hello, first off sorry i am new and a dumbass but I need help with
this.
In my view/application file i have some css and I want a certain bit
of css displayed if a user is in one controller but another type of
css to be display if they are in another controller. I made up
This could have been solved earlier. But I couldn't find a solution.
Lets say I have an abstract base model called 'Question' and sub-
models like Mcq, TrueFalse and FillInTheBlank. Mcq and TrueFalse
models have a has_many relation with another model named 'Choice'
whereas FillInTheBlank model
found the answer if anyone else is looking for it
% if controller.controller_name == pages %
div id='home'/div
% else %
div id='other'/div
% end %
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
max wrote:
I am actually using the restful_acl, and restul_authentication
plugins, but they are really falling short
Check out this tutorial on restful_authentication, maybe it could give
you some ideas on access control.
http://railsforum.com/viewtopic.php?id=14216
mike
--
Posted via
Danimal wrote:
Matt,
No, you are making sense. I think you and I got mixed up backwards.
If you are KEEPING sort order but CHANGING pages, then don't change
the sort.
If you are KEEPING pages but CHANGING sort order, then I would argue,
force a page change to page 1.
So, in your
Looks like I have found one solution.
I had 2 definitions for the classes Mcq and TrueFalse, one in separate
files named mcq.rb and true_false.rb and another definition in the
file question.rb (the abstract class itself). I had to have these
definitions in 2 files because otherwise I couldn't
Newbie question: how do I prevent your code snippet from becoming an n-
fetch?
Eager loading will work, but if all I want are the codes, then eager
loading of the associated courses will over-retrieve data.
Yes, yes, I know - don't over optimize. But if I know how to optimize,
at least I can
try to do
@user[attribute_name] = value
if you pass a string or a symbol =]
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
Milan Novota wrote:
Here is my problem:
I've been working on a RoR project for a while (its quite big
project), but have to stop the work on it for some half a year. Now
I'm back on it and I'd like to switch to the newest version of Rails
(my project is using Rails 1.2.6). Any tips how can
Hi,
I need to inspect the request header I'm getting from a client in
production mode.
Any hints anyone?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on
Obviously not a genius with Ruby.
I simply want to check if the string from an form input is a phone
number, or an email.
I started testing wether the string.class was Bignum or Fixnum. If it
was I presumed it was a phonenumber. Although this works in script/
console, my application dosn't
Although this isn't directly rails related, I am hopefull that I can get
some advice here.. :)
I can't seem to find a way to configure nginx with the standard modules
included to proxy_pass based off a custom html header attribute. The
only possibility I came up with was to write a custom
David,
I believe that regular expressions is what you may be looking for..
s = (0045) 444-
= (0045) 444-
codes = s.match /(\(\d+\))?\s*(\d{3})(\s*-\s*)?(\d{4})/
= #MatchData (0045) 444- 1:(0045) 2:444 3:- 4:
codes[0]
= (0045) 444-
codes[1]
= (0045)
codes[2]
= 444
Hi - I wanted to try out the Blackbook gem:
http://contentfree.rubyforge.org/blackbook/
So I did
gem install blackbook
and I kept getting failures installing, and finally I used the --
ignore-dependencies flag in gem install, and I got it installed. Now I
try to do something very simple like
On 9 Sep 2008, at 21:24, David Liwoch [EMAIL PROTECTED] wrote:
Obviously not a genius with Ruby.
I simply want to check if the string from an form input is a phone
number, or an email.
Read up on regular expressions
Fred
I started testing wether the string.class was Bignum or Fixnum.
Did you require the gem?
On Sep 9, 3:37 pm, dino d. [EMAIL PROTECTED] wrote:
Hi - I wanted to try out the Blackbook gem:
http://contentfree.rubyforge.org/blackbook/
So I did
gem install blackbook
and I kept getting failures installing, and finally I used the --
ignore-dependencies flag
Max, first of all, this is not a csv file.. but if you are willing to
make it a real csv file then you can do something like the following:
#!/usr/bin/env ruby
schools = []
ARGV.each do |f_name|
File.open(f_name) do |f|
headers = f.gets.chomp.split(/\s*,\s+/)
while(line = f.gets) do
I didn't originally, but now I did. I added:
require 'blackbook'
and now, I get
no such file to load -- blackbook
I've checked and blackbook.rb is installed here:
C:\ruby\lib\ruby\gems\1.8\gems\blackbook-1.0.4\lib
i don't have any idea how ruby looks for gems or where. this error
tells me
I have read many articles about polymorphic associations in Rails and
also about plugins for this purpose (mainly the has_many_polymorphs
plugin).
Unfortunately, I am still unsure how to solve my problem:
Let's say you have these models you want to set in relation to each
other: Person,
Reiner,
I don't believe you have the need for polymorphic associations in the
above example as you have a seperate association type already specced
out for each relation
class Person ActiveRecord::Base
has_many :documents
has_many :realties
end
class Document ActiveRecord::Base
belongs_to
Is this is Rails 2.1?
If so did you look at the comments pertaining to gems in
config/environment.rb?
Example:
config.gem hpricot, :version = '0.6', :source =
http://code.whytheluckystiff.net;
dino d. wrote:
I didn't originally, but now I did. I added:
require 'blackbook'
and now, I
If so did you look at the comments pertaining to gems in
config/environment.rb?
Or optionally you may consider vendoring the gem.
See: http://errtheblog.com/posts/50-vendor-everything
Robert Walker wrote:
--
Posted via http://www.ruby-forum.com/.
no, i'm running rails 2.0.2
thanks for your help so far.
On Sep 9, 5:28 pm, Robert Walker [EMAIL PROTECTED]
wrote:
Is this is Rails 2.1?
If so did you look at the comments pertaining to gems in
config/environment.rb?
Example:
config.gem hpricot, :version = '0.6', :source =
So it turns out the call myArray.toJSON() only converts the javascript
array myArray to a string. I have implemented a work around parse to
convert the string into an array, but i was wondering if anyone knows
of a JSON method to convert directly to a ruby array. Maybe this
would be faster?
On
Hi Ilan,
thank you for your answer:
Ilan Berci wrote:
class Person ActiveRecord::Base
has_many :documents
has_many :realties
end
class Document ActiveRecord::Base
belongs_to :owner, class_name = Person
belongs_to :realty
end
class Realty ActiveRecord::Base
belongs_to :owner,
I have a plugin that I'm trying to use but it keeps looking in another
plugin's path for the view files.
I get this error:
ActionView::MissingTemplate (Missing template blah.rhtml in view path
other_plugin_view_dir:my_app/app/views)
I don't know much about setting up view paths in plugins, but
Fabio Eidi wrote:
try to do
@user[attribute_name] = value
if you pass a string or a symbol =]
That did the trick. Thx,
-S
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Walter McGinnis wrote:
Hi Mohit,
You can give Kete a try simply by asking questions you might have on
the Kete community site run on the software at http://kete.net.nz/ or
feel free to contact me offlist and I can point you at a demo site
where you can play around a bit.
Glad to hear
Is it possible for a PHP based application, specifically Clickheat, be
ported to a currently running web application built from RoR?
I have managed to extract the directory of clickheat into the public
directory of our RoR application but when I access clickheat using
Tim Gossett wrote:
done.
http://wiki.radiantcms.org/Does_Radiant_have_what_I_need
Excellent! Thanks a lot :)
Cheers,
Mohit.
9/10/2008 | 9:13 AM.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on
Thanks for the tip...but sadly it doesn't work. I still see the boxes.
It might just be an isolated problem on my computer.
The HTML is now: font color=gold#9733; #9733; #9733; #9733;
#9733; /font
On Sep 8, 9:16 pm, Phlip [EMAIL PROTECTED] wrote:
On Tue, Sep 9, 2008 at 6:11 PM, Abed Escobal
[EMAIL PROTECTED] wrote:
Is it possible for a PHP based application, specifically Clickheat, be
ported to a currently running web application built from RoR?
I am no developer of RoR. My boss just told me to port it.
Port -- You keep using that
If you don't want to store anything in the session, how about checking
the referrer url in your controller action?
def show
@item = Item.find(params[:id])
dont_log_page_view = request.env[HTTP_REFERER] =~ /\/items\/
[EMAIL PROTECTED]/
...
end
That will check to see if the request for
I was wondering how to get Rails 2.1 migrates to go from generating
20080910014108_create_table.rb-esque migrations to the old
22_create_table.rb style ones. I am sure that there is some sort of
advantage in having timestamps in the file name, I just haven't
figured it out yet.
Thanks in
Hassan Schroeder wrote:
Port -- You keep using that word. I do not think it means what you
think it means.
Sorry. Maybe integrate will do? Do you have any suggestions for a person
whose english is not his native tongue?
Can you rewrite an existing PHP application in Ruby to run on the
Rails
the advantage to the datetime based filenames over the simple integers
is that it allows you to work in branches, make migrations and merge
it all back together later without fear of conflicting migrations. why
would you want to go back?
On Sep 9, 8:45 pm, Trogdor [EMAIL PROTECTED] wrote:
I was
Ahh, that does make sense.
I am the only dev working on this project, so I do a lot of rake
db:migrate VERSION=22 stuff to roll back migrations, trying to do
VERSION=20080214017515 is just a hassle.
Being a loner I forget sometimes that people write software with other
people...
On Sep 9,
If you're wanting to rollback, just use rake db:rollback?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To
On Tue, Sep 9, 2008 at 7:47 PM, Abed Escobal
[EMAIL PROTECTED] wrote:
Sorry. Maybe integrate will do? Do you have any suggestions for a person
whose english is not his native tongue?
I perhaps wrongfully assumed that basic CS terms like port -- and
FWIW I don't have a CS degree -- would be
h
so, do more people use sphinx for full text search?
i was just more comfortable using a lucence ruby port since lucene is
so well known
On Sep 9, 9:48 am, Thorsten Müller [EMAIL PROTECTED] wrote:
On Sep 9, 4:23 pm, Russell Norris [EMAIL PROTECTED] wrote:
veering off topic... what
here is useful discussion on the issue:
https://groups.google.com/group/rubyonrails-deployment/browse_thread/thread/980fe7cb20cb97dd/bc798b52f439020c
On Sep 9, 9:12 pm, tashfeen.ekram [EMAIL PROTECTED] wrote:
h
so, do more people use sphinx for full text search?
i was just more
I may be wrong, but since JS is a client side language and Ruby is a
server side language, won't all of the ruby code have been parsed before
the JS array is ever even created?
-- Josh
David wrote:
So it turns out the call myArray.toJSON() only converts the javascript
array myArray to a
Chris Metcalfe wrote:
I too am getting the same error in apache with fastcgi. Any ideas?
I'm having the same error too. Have any luck on solving this?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are
tried this one?
http://agilewebdevelopment.com/plugins/show/807
On Sep 9, 9:56 am, max [EMAIL PROTECTED] wrote:
I am actually using the restful_acl, and restul_authentication
plugins, but they are really falling short
On Sep 9, 11:28 am, elFonso [EMAIL PROTECTED] wrote:
Check out restful
Ilan,
Mcq and TrueFalse descend from question and not choice. The correct
structure is below.
app/models/choice.rb
class Question ActiveRecord::Base
end
app/models/question.rb
class Question ActiveRecord::Base
self.abstract_class = true
end
class Mcq Question;end
class TrueFalse
Hello,
I'm using Rails 2.1 on apache and in some functions of my application
I need to reload routes on the fly.
Now and then, it raises a MethodNotAllowed exception (Only get, post,
put, and delete requests are allowed), and after this my application
will not work at all until I restart apache.
I know this may be nit-picky, but I'd like to show a more friendly
field name when displaying error messages.
For example, I've got a form field labeled E-Mail Address but the
error message looks like this:
* Email address must be valid
A better example is that I've got a field on the User
Hi
Please send me your updated resume for the follwoing position.
JobTitle : Peoplesoft HR Functional Business Systems Analysts
Location : Chicago, IL
Duration : 6 Month(s)
Skills : Required Skill Set includes the following:
· PeopleSoft Query
· SQRs
· Security
83 matches
Mail list logo