hi, im trying to experiment a rails3 on my ubuntu10.04 32bit, with
installation guide from rails official website
have installed all packages, when i try to run script/rails server
it showed my following errors:
r...@c2h2vaio:~/a# script/rails s
/root/a/config/boot.rb:9:in `rescue in top
btw my ruby version is 1.9.1
ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i486-linux]
--
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 group, send email to
Tushar Gandhi wrote:
Hi,
I have one problem. How can I get the video thumbnails like what we will
see on youtube on right side?
Thanks,
Tushar
Tushar Gandhi wrote:
Thanks Saurabh.
It is working fine.
Hi Tushar,
I have tried something like this:
if the youtube url is like
Hi,
I am using rails 2.3.5 with ruby 1.8.7. On using
options_for_select/options_from_collection_for_select with select_tag I
get the following error:
wrong number of arguments (1 for 0)
This the code I am using in my view:
%= select_tag :list_filter, options_for_select(All = all,Top
Visit the below link for comparison
http://www.railspassion.com/rails/cms/typo-or-mephisto-or-radiant-cms/
http://www.railspassion.com/rails/cms/typo-mephisto-and-radiant-cms/
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
Hi Anjali,
Try using brace brackets.
%= select_tag :list_filter, options_for_select({All =
all, Top Contribution = top_contributors, Top Questioners =
top_questioners, Top High Quality General Purpose Experts =
general_experts, Most Influential = most_networked, Most
decorated = most_decorated,
Marnen Laibow-Koser wrote:
Tim Baas wrote:
Thank you all for the fast responds..
I can see now that the problem is I need to run the different
applications on different ports..
The only thing is, I've heard it has to be possible to run more
applications on one port, I want to use port 80.
Has anyone developed or come across on how to migrate to Rails 3 from
prior releases. I would like an idea of how much work it would be.
O.
--
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
There are some similar discussions about but none seem to have a
definitive answer of this one.
I have an application which supports multiple domains. In the
application controller I look up the domain being requested and pull
some attributes from a Domain model which determines thing such as
Have you checked this --
http://railscasts.com/episodes/200-rails-3-beta-and-rvm
On Thu, Jun 10, 2010 at 8:04 AM, Niels Meersschaert
nmeersscha...@mac.comwrote:
Simplest way:
Make you are up to date with rubygems, which is what DHH was referring to
with
gem update --system
Then run:
Hi ,
i run RAILS_ENV='production' rake db:migrate , script/server -e
production, i can successfully run in production environment now.
But when i wanna go back to development mode with rake db:migrate ,
script/server , something goes wrong. It seems, can't find the
database?
Any one have met
hi
cat config/database.yml please
Ivan Nastyukhin
dieinz...@me.com
On Jun 10, 2010, at 12:15 PM, Xiaohua Dai wrote:
Hi ,
i run RAILS_ENV='production' rake db:migrate , script/server -e
production, i can successfully run in production environment now.
But when i wanna go back to
I wouldn't say that comparing Typo, Mephisto, and Radian is up to date
with the current crop of Rails-based CMS tools. Radiant may still be
in the running, but it feels like the herd has moved on from
Mephisto and Typo.
--
You received this message because you are subscribed to the Google
I've swapped-in Nokogiri rather than builder, but my general strategy
is the same; using helper methods to encapsulate discreet xml building
code for reuse rather than partials. Seems less hackish. Just pass
in the xml object you are building up.
--
You received this message because you are
Hi all I am working with Ruby on Rails,experience of 6Months. I need a
job in a company any where in India.
Thanks
Debadatta Pradhan
--
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
Marnen Laibow-Koser wrote:
Sindri Guðmundsson wrote:
If this helps these are the parameters passed when I use check_box:
Parameters: {commit=Vista mælitæki,
authenticity_token=B2u5ULNr7IJ/ta0+hiAMBjmjEtTtc/yMAQQvSxFn2d0=,
cats={flokkur=[nil, nil, nil, nil, nil, nil, nil, nil, nil,
On Jun 10, 2:21 am, Skye Weir-Mathews li...@ruby-forum.com wrote:
The thing that is confusing me is that, I have the :secure
session_option set, but when I go to an insecure page the Set-Cookie
_session_id header is passed to me, and this appears to be replacing the
_session_id cookie I got
Another option is adva cms by Sven Fuchs
http://github.com/svenfuchs/adva_cms
http://adva-cms.org/
I have never tried it myself but I will the next time I need a CMS.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group,
However thank you all,
I found solution, I write few lines in posts helper and everything
works fine
module PostsHelper
def wrap(content)
content.split.map{ |s| wrap_long_string(s) }.join(' ')
end
private
def wrap_long_string(text, max_width = 30)
zero_width_space = #8203;
Sindri Guðmundsson wrote:
Marnen Laibow-Koser wrote:
Sindri Guðmundsson wrote:
If this helps these are the parameters passed when I use check_box:
Parameters: {commit=Vista mælitæki,
authenticity_token=B2u5ULNr7IJ/ta0+hiAMBjmjEtTtc/yMAQQvSxFn2d0=,
cats={flokkur=[nil, nil, nil, nil,
Hi Saurabh,
Thanks for your inputs.But it is still not working.Same error.
Regards,
Anjali
Saurabh Peshkar wrote:
Hi Anjali,
Try using brace brackets.
%= select_tag :list_filter, options_for_select({All =
all, Top Contribution = top_contributors, Top Questioners =
top_questioners,
Hi,
I have implemented the scaffold crud for users table.
My page is having show, edit, delete link and date-wise search option.
I have to pass the date in links as a paramater when i clicked the
search button.
So i added the date as parameter in all available links such as show,
edit, delete,
Hi Yiling,
Ruby 1.9.1 is not supported, better upgrade to Ruby 1.9.2-head.
More information here:
http://guides.rails.info/3_0_release_notes.html#rails-3-requires-ruby-187
cheers
On Thu, Jun 10, 2010 at 3:14 AM, Yiling Cao li...@ruby-forum.com wrote:
btw my ruby version is 1.9.1
ruby -v
This screencast may help you:
http://blog.peepcode.com/tutorials/2010/live-coding-rails-3-upgrade
cheers
On Thu, Jun 10, 2010 at 4:47 AM, Owain owain.mcgu...@gmail.com wrote:
Has anyone developed or come across on how to migrate to Rails 3 from
prior releases. I would like an idea of how
On 10 June 2010 09:15, Xiaohua Dai iandai...@gmail.com wrote:
Hi ,
i run RAILS_ENV='production' rake db:migrate , script/server -e
production, i can successfully run in production environment now.
But when i wanna go back to development mode with rake db:migrate ,
script/server , something
Also, there is this guide from Jeremy McAnally,
http://www.railsupgradehandbook.com/
On Jun 10, 3:47 am, Owain owain.mcgu...@gmail.com wrote:
Has anyone developed or come across on how to migrate to Rails 3 from
prior releases. I would like an idea of how much work it would be.
O.
--
You
Hi.
I have an AR model named Order, and a field in the DB named expired. I
dont want this field to be modified from outside the model.
Therefore I have declared a private method expired=(value) in my Order
model.
This works fine in development and production; If I call o.expired =
nil I get a
hi,
i have this message
NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
when i use the command rake db:migrate
Have you an idea ?
here my files :
http://patxi.mayol.free.fr/public/database.yml
http://patxi.mayol.free.fr/public/001_create_livres.rb
Hi
I have an app which posts an ajax request with with text area content,
but when it does post it it gets all the newlines and multiple spaces
removed (need to use multiple spacing for use with markdown code
snippets)
I've created a sample app which you can see here
Dave Amos wrote:
I still haven't figured this out yet. Am I missing a file somewhere?
I had to move my restful_authenication to the vendor/plugins and that
fixed the error message and now everything works.
Reth11
--
Posted via http://www.ruby-forum.com/.
--
You received this message because
Tim Baas wrote:
[...]
I've checked the settings.. But without any progress, I'll just try
mongrel with Mongrel Cluster for now.. Let's see what that is going to
do..
No! Get Passenger working -- it's far easier than Mongrel Cluster.
Reread the docs -- it shouldn't be difficult. Under what
Sharagoz wrote:
Another option is adva cms by Sven Fuchs
http://github.com/svenfuchs/adva_cms
http://adva-cms.org/
I have never tried it myself but I will the next time I need a CMS.
I've played a little with Adva. At the time, it was a promising
newcomer but was missing a lot of
I have a too many models and want to maitain separate validation and
relationship files for each model. Is there any way i can maintain it
with rails?
Any specific advantage to do it?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
I am developing in Rails 2.X (I forget the latest release!)
Anyway. I need to incorporate email capability to my app. Is
actionmailer the way to go or is there a plugin that is better. It
seems quite easy and straightforward. I have already created some
simple functionality with actionmailer.
After look deeper it looks like ActiveSupport::JSON.decode is to
blame, heres an example
ActiveSupport::JSON.decode(data=\\\u000afunction(){\
\u000avar a = 1;\\u000a}\\u000a\\u000a \)
= data=\ function(){ var a = 1; }\n\
Anyone know if theres a fix to this?
On Jun 10,
On Jun 10, 1:37 pm, teesea t.co...@gmail.com wrote:
the echo action which the requests are sent to simply removes the
controller and action keys from params and then does
render :text = params.to_json
Anyone have any ideas what I'm doing wrong?
I think the way you're posting data is
Hi.
I just wonder why do the javascript_include_tag and
stylesheet_link_tag methods generate additional parameters and add
them to the paths on output?
For example, I have the following view:
# app/views/test.haml
%html
%head
= stylesheet_link_tag 'styles.css'
=
On Jun 10, 2:58 pm, slindsey3000 slindsey3...@gmail.com wrote:
Everything seems to work fine but no emails are actually sent from
development mode... How can I get it to actually send the emails? I
just want to see that it is working right. Do I need to install a
smpt server? Using
On Jun 10, 3:00 pm, P.A. shama...@hotmail.com wrote:
html
head
link href=/stylesheets/styles.css?1276104169 media=screen
rel=stylesheet type=text/css /
script src=/javascripts/prototype.js?1275579095 type=text/
javascript/script
...
What do '1276104169' and '1275579095' mean
I'm in rails 2.3.4, and i'm trying to convert an array into an ordered
hash. Since an ordered hash is kind of an array in disguise i thought
this would be simple. But the ordering is breaking down by the time i
add the third or fourth pair. Check it out:
row = [[QID, 8], [SID, 21], [Question,
I've change the ajax posting from data=some data to {data:'some
data'}
Hopefully thats what you meant
Unfortunatley this hasnt changed the response, rails is still removing
the spaces and new lines
Is this what you mean?
On Jun 10, 4:06 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Thu, Jun 10, 2010 at 10:42 AM, wischr cw...@murmurinformatics.com wrote:
Have the exact same problem - doesn't matter 1.8.7, 1.9.1 or 1.9.2.
Interestingly, in the console, invoke g.save a second time and it
works. All subsequent AR calls seem fine after that. I ran into the
problem when
I just tried 1.8.7 - still fails for me (consistently). I am headed
over to the AR presentation, so I might ask if it's a known issue in
the QA.
On Jun 10, 11:15 am, Greg Donald gdon...@gmail.com wrote:
On Thu, Jun 10, 2010 at 10:42 AM, wischr cw...@murmurinformatics.com wrote:
Have the exact
Is that done just in environment.rb?
On Jun 10, 8:08 am, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jun 10, 2:58 pm, slindsey3000 slindsey3...@gmail.com wrote:
Everything seems to work fine but no emails are actually sent from
development mode... How can I get it to actually send
-- I got the same results - 'dictionary' gem works properly -
The library seems broken - this is an opportunity to write a test
case - identify the problem and submit a patch - first check
lighthouse for a ticket.
Maybe the rails core team wants to rename Dictionary as OrderedHash
Dictionary
{QID=8, SID=21, Question=Which number is the
smallest?, Right=-300, Wrong1=-3, Wrong2=-13,
Wrong3=-30, 50_50=1, Checked=nil, DBand5-7=NA,
DBand7-9=NA, DBand9-11=H, DBand11-14=E,
DBand14-16=nil, Editor=nil, Subject=Mathematics,
Question_Type=curriculum, Keywords=\eggs, bacon, sausage and
chips\,
Have the exact same problem - doesn't matter 1.8.7, 1.9.1 or 1.9.2.
Interestingly, in the console, invoke g.save a second time and it
works. All subsequent AR calls seem fine after that. I ran into the
problem when attempting to seed (create). You at RailsConf by the way?
(I am @wischr).
On Jun
Anyone have any idea how to interpret this? I've been at it for an
hour and I'm not getting anywhere. Doesn't seem to be any other
instances of this online either.
User: root
OS: CentOS 5.4 (up to date as of 20100610 06:30)
Rails -v: 2.3.8
Gem -v: 1.3.6
code
# gem update
Updating installed
The following is an error for using RoR with MySQL:
C:\ror\shov17rake db:migrate
(in C:/ror/shov17)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install
the mysql gem and try again: gem install mysql.
rake aborted!
193: %1 is not a valid Win32 application. -
On Jun 10, 4:09 pm, Max Williams li...@ruby-forum.com wrote:
Here i'm onto the fourth pair and already the order is screwed up:
Right has jumped in before Question.
Can anyone explain what's going wrong here? thanks - max
OrderedHash subclasses from Hash, and the inspect method wasn't
(up to date as of 20100610 06:30)
Rails -v: 2.3.8
Gem -v: 1.3.6
code
# gem update
Updating installed gems
Updating sqlite3-ruby
Building native extensions. This could take a while...
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number
You'd use a mixin.
El 10/06/10 15:33, Krunal Shah escribió:
I have a too many models and want to maitain separate validation and
relationship files for each model. Is there any way i can maintain it
with rails?
Any specific advantage to do it?
--
You received this message because you are
On Jun 10, 4:15 pm, teesea t.co...@gmail.com wrote:
I've change the ajax posting from data=some data to {data:'some
data'}
So if you do that then you will need to set the content-type to
application/json, or else rails will try to parse it as something else
Fred
Hopefully thats what you
I ran into the same problem but with 1.8.7, 1.9.1, 1.9.2. If you run
your save again, it will work the second time. I am trying to go down
the suggestions I just read of temporarily using ruby-mysql gem
instead.
On Jun 9, 11:41 pm, Greg Donald gdon...@gmail.com wrote:
When I try rails console
Hi,
I'm trying to build a web application to search web and store the
results onto my application database. Here's my screen flow:
Screen 1 - User can search by keyword, then click Search.
Screen 2 - The page returns the search result in list. User clicks on
one of the result link to move to the
This is the error I got. I am working with authlogic and was able to
register the user. But when I create user_sessions and try to login, I
got his error.
Guys can u help me out in this.
Thnak you,
Siva
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
Hello,
I'm having a problem to output things in the right order with erb1.9
and lighttpd . I don't know if it's the normal behaviour of erb but
this is how it works for me:
Content of my ERB file: test{%= 1 %2% puts 3 %}
On my web browser I get this output:
3
test{12}
puts or print comes
Frederick Cheung wrote:
OrderedHash subclasses from Hash, and the inspect method wasn't
overriden to inspect things in order (mea culpa!). if you iterate with
each (or look at the keys) then you should see that things are in the
right order
Fred
ahhh...that was you? :)
Yep, on closer
A checklist has many task_status, I have displayed the view in nested
model atttributes form,
checklist_instance attributes and its associated nested attributes are
getting updated correctly.
while i try to update user information to the checklist instance, the
following updates only if the
I have a generator that creates a model amongst other files. We need
to be able to interpolate data into that file but nothing is actually
being interpolated. It is simply copying the file verbatim.
I was wondering if you could enlighten me as to what I am doing wrong.
Here is the generator and
On Jun 10, 4:54 pm, Dominic Rose li...@ruby-forum.com wrote:
Hello,
I'm having a problem to output things in the right order with erb1.9
and lighttpd . I don't know if it's the normal behaviour of erb but
this is how it works for me:
Content of my ERB file: test{%= 1 %2% puts 3 %}
On my
Krunal Shah wrote:
I have a too many models and want to maitain separate validation and
relationship files for each model.
How will that change the fact that you have too many models?
Is there any way i can maintain it
with rails?
Use mixins or subclasses.
Any specific advantage to do it?
This is a full time, on-site, contract/hourly gig that lasts at least
12 months in New York City. No telecommuting allowed.
A well funded start up is urgently looking for 2-3 talented developers
with expert knowledge of RoR. This is a long term engagement that can
lead to full time employment,
to search_show). I am told that if the request is xhr then I can't
redirect to the search_show action? Is that right? If yes, how do I
handle this?
Hi If what I understood from your post is correct, you can do from
controller like
render :update do |page|
page.redirect_to
Hi
An example from api
% form_for :post, @post, :url = post_path(@post), :html = { :method
= :put, :class = edit_post, :id = edit_post_45 } do |f| %
Check :html = above
Sijo
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
e
have any idea how to interpret this? I've been at it for an
hour and I'm not getting anywhere. Doesn't seem to be any other
instances of this online either.
User: root
OS: CentOS 5.4 (up to date as of 20100610 06:30)
Rails -v: 2.3.8
Gem -v: 1.3.6
code
# gem update
Updating installed gem
Dear Friend's
Could not find a valid gem 'rails' (= 0) in any repository
These is the error which i am facing while i am invoking the gem
install rails command.
my gem version is
gem -v
1.3.7
My Ruby Version is
ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273)
On Thu, Jun 10, 2010 at 1:51 PM, Andrew Vliet avl...@vlietwerkz.ca wrote:
Hey Luciano,
Thanks for the reply. That may fix it, but it's like nuking a mouse. I
don't need all of those tools - especially not xorg - on my headless virtual
box.
I think I understand what you're getting at -
# file foo.rb
class Foo ActiveRecord::Base
include FooMethods
# --- validations --- #
# --- relationships --- #
belongs_to :foobar
has_many :bars
# --- Class Methods --- #
def Foo.a_method_name(id)
...
end
end
~~~
# file foo_methods.rb
module
Krunal Shah wrote:
# file foo.rb
class Foo ActiveRecord::Base
include FooMethods
# --- validations --- #
# --- relationships --- #
belongs_to :foobar
has_many :bars
# --- Class Methods --- #
def Foo.a_method_name(id)
...
end
end
~~~
Kevin Hastie wrote:
Kevin Hastie wrote:
I guess what I really want is something like this:
class Address ActiveRecord::Base
belongs_to :addressable, :polymorphic = true
end
class Business ActiveRecord::Base
has_one :address, :as = :addressable
end
class School
Well the problem was that I ran the command as a root (sudo script/
server) so the ruby 1.8.6 was used. When I am running for the version
1.8.7 I am getting the following errors:
/home/nikos/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.5/lib/rails/
gem_dependency.rb:119:Warning:
I impleneted ajaxful rating on a Store model with 3 dimensions. I am
caching rating average for each dimension as well as the overall
average rating. The individual dimension rates are being saved and
shown correctly and everything works fine except, the rating_average
does not update (still at
Well I am having a really weird problem, I am working on a project of
another team and they were using ruby 1.8.7. I has installed ruby
1.8.6 so I've got many ruby errors and I couldn't figures out why.
Finally I found that the reason was the version of the ruby, I have
installed RVM and I set
OS: CentOS 5.4 (up to date as of 20100610 06:30)
Rails -v: 2.3.8
Gem -v: 1.3.6
code
# gem update
Updating installed gems
Updating sqlite3-ruby
Building native extensions. This could take a while...
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking
I'm having the identical problem with beta4.
On May 8, 10:39 pm, Frank fburle...@gmail.com wrote:
I've always distrusted the ruby and rails installs on my Mac (oOS X
10.6.3) -- sudo gem cleanup can't seem to get rid of old gem versions
(lots of Gem::InstallError: cannot uninstall).
Because
On Thu, Jun 10, 2010 at 5:25 PM, Yiannis istoseli...@gmail.com wrote:
initializer.rb:271:in `require_frameworks': no such file to load --
openssl (RuntimeError)
Any ideas what it might been wrong?
Install your missing ruby openssl libraries.
--
Greg Donald
destiney.com | gregdonald.com
--
dry_crud is a Rails generator that generates simple and extendable
controller, views and helpers that support you to DRY up the CRUD code
in your Rails project. Start with these elements and build a clean
base to efficiently develop your application upon.
http://github.com/codez/dry_crud
The
Running Jruby1.4.0, Rails 2.3.5, Tomcat 5.5, Java 1.6
We are getting reports that when a user logs in they are getting the session
of another user. We are unclear how this could happen. One suspicion is a
potentially non-threadsafe plugin called acts_as_audited. has anyone
encountered this
Micah Winkelspecht wrote:
def periodically_call_remote(options = {})
variable = options[:variable] ||= 'poller'
frequency = options[:frequency] ||= 10
code = #{variable} = new PeriodicalExecuter(function()
{#{remote_function(options)}}, #{frequency})
javascript_tag(code)
Hi, everybody.
I am newbie RoR.
I want to get all data from DOM Source of website.
Can you guide me the way to use REXML? I have ready installed lib-xml
library but I only use XML::Parser. I don't understant it.
Thanks a lot and looking forward.
--
Posted via http://www.ruby-forum.com/.
--
Ryan Bigg wrote:
I used the wrong wording.
On Jan 3, 2008 7:19 AM, Greg Donald gdon...@gmail.com wrote:
Greg Donald
http://destiney.com/
--
Ryan Bigg
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.
Hi
I use the Agile web development using
82 matches
Mail list logo