I've created for the root_path the special method that redirects the
user again preserving flash to the place defined by the user's role.
On Jun 7, 9:03 am, Chris Kottom ch...@chriskottom.com wrote:
Hi Fernando,
I think this is the wiki page you're looking
On 6 June 2011 23:44, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote:
Thank you guys, the url is 'fatima.heroku.com'
and I tryed that validator you just said, problem is I don't understand the
errors =)
Please don't top post, it makes it difficult to follow the thread.
Insert you reply inline at
On Jun 7, 3:37 am, Jeweller jiangna...@gmail.com wrote:
thanks ,Fred.
I still don't understand,because in the model I use the
validates_presense_of :commenter to make sure the commenter
won't be nil.
Here's the file I used to generate sample data.
require 'faker'
def make_comments
Any idea to fix this (I am using Rails 2.3.11):
$ heroku rake db:migrate --app myapp --trace
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
undefined method `task' for #Spec::Rake::SpecTask:0x7f690b4eecf8
/app/lib/tasks/rspec.rake:28:in `initialize'
Sorry, I don't know how to test it. I'm new to Rails. Could you
specify it?
Or let's say if you want a user able to comment on microposts and also
comments, what would you do?
I just don't want to use act_as_commentable gem, because I'm trying
to learn
On 6月7日, 下午2时50分, Frederick Cheung
2011/6/7 Jeweller jiangna...@gmail.com:
Could you not top post please, insert your reply at appropriate points
in the previous post, that makes it easier to follow the thread.
Sorry, I don't know how to test it. I'm new to Rails. Could you
specify it?
Or let's say if you want a user able to
hi,
i want make a view with a table that i can sort, but values in this
table dont comes from one model.
for real its a table of users but in the end it show how contact have
this user ( user.contacts.count ). i can see the table,i can sort
columns except the last (friends ).
how can i resolve
On 7 June 2011 11:07, Adel Mediouni mediouni.a...@gmail.com wrote:
hi,
i want make a view with a table that i can sort, but values in this
table dont comes from one model.
for real its a table of users but in the end it show how contact have
this user ( user.contacts.count ). i can see the
SO this is the view:
tr bgcolor='#A4A4A4'
th %= sortable_column username % /th
th %= sortable_column email %/th
th %= sortable_column sign_in_count %/th
th %= sortable_column amis %/th
th/th
th/th
th/th
/tr
tr height=4pxtd/td/tr
% i = 0 %
% @user.each do |user| %
dont care about the temp ligne lol, i forget to erase it :)
On Jun 7, 12:26 pm, Adel Mediouni mediouni.a...@gmail.com wrote:
SO this is the view:
tr bgcolor='#A4A4A4'
th %= sortable_column username % /th
th %= sortable_column email %/th
th %= sortable_column sign_in_count %/th
th
I'm trying to use select('DISTINCT *') but it doesn't work. Sure, de
INNER JOIN between Post and Tagging result of table that all rows are
distinct. If we supost the next:
Posts Table
ID TITLE
1Foo
2FooFaa
TAGGINGS Table
ID POST_ID TAG_ID
1 11
1
On 7 June 2011 11:26, Adel Mediouni mediouni.a...@gmail.com wrote:
SO this is the view:
tr bgcolor='#A4A4A4'
th %= sortable_column username % /th
th %= sortable_column email %/th
th %= sortable_column sign_in_count %/th
th %= sortable_column amis %/th
th/th
th/th
th/th
Well, I think Fred may be right. The path to my app contains some
Chinese, like 桌面. So I removed it to another directory, but there
came with a new error undefined method `name' for nil:NilClass
instead of the old one.
comment.commenter is a nilclass !!!but %= comment.commenter % it
got
Afaik i've seen similar weird issues, although locally with rake 0.9.0, you
might want to downgrade to 0.8.7...
On Tue, Jun 7, 2011 at 13:02, rtacconi rtacc...@gmail.com wrote:
Any idea to fix this (I am using Rails 2.3.11):
$ heroku rake db:migrate --app myapp --trace
rake/rdoctask is
yes its users not user :s
i will the sort_by method its a good think :)
thanks
2011/6/7 Colin Law clan...@googlemail.com
On 7 June 2011 11:26, Adel Mediouni mediouni.a...@gmail.com wrote:
SO this is the view:
tr bgcolor='#A4A4A4'
th %= sortable_column username % /th
th %=
2011/6/7 Jeweller jiangna...@gmail.com:
Well, I think Fred may be right. The path to my app contains some
Chinese, like 桌面. So I removed it to another directory, but there
came with a new error undefined method `name' for nil:NilClass
instead of the old one.
As I asked previously, don't top
On Tuesday, June 7, 2011 6:26:16 AM UTC-4, Adel Mediouni wrote:
% i = i +1 %
% if i.modulo(2) == 0 %
% color = '#E6E6E6' %
% else %
% color = '#D8D8D8' %
% end %
tr align=center bgcolor = %= color %
Not related to your problem, but there's an easier way to do this part of
:) thank you
im a beginer in ror,and i dont know whats the importance of the helper o_O
!! and what is the difference between run a task (in file .rake) or write
the method directly in the controller !!?
2011/6/7 Tim Shaffer timshaf...@me.com
On Tuesday, June 7, 2011 6:26:16 AM UTC-4, Adel
Thanks Colin and Fred,it works with%= comment.commenter.name if
comment.commenter %
I still don't understand why some of the commenters are nil, but I
will take your advise and learn how to debug myself.
Thanks very much!!
On 6月7日, 下午7时28分, Colin Law clan...@googlemail.com wrote:
2011/6/7
On Jun 6, 4:22 pm, danimashu daniel.madrid.re...@gmail.com wrote:
Hello,
I've a usually structure with Post has_many Tags through Taggings. All
works well and clean. But I'm having problems with the next scope on
Post:
scope :tagged, lambda {|tag_id| joins(:taggings).where(:taggings =
Hi
I changed
gem 'rake', '~ 0.8.7'
to
gem 'rake', '0.8.7'
and it solved the issue
thank you
On Jun 7, 1:27 pm, Dhruva Sagar dhruva.sa...@gmail.com wrote:
Afaik i've seen similar weird issues, although locally with rake 0.9.0, you
might want to downgrade to 0.8.7...
On Tue, Jun
Hi
I changed
gem 'rake', '~ 0.8.7'
to
gem 'rake', '0.8.7'
and it solved the issue
thank you
On Jun 7, 1:27 pm, Dhruva Sagar dhruva.sa...@gmail.com wrote:
Afaik i've seen similar weird issues, although locally with rake 0.9.0, you
might want to downgrade to 0.8.7...
On Tue, Jun
Can i use Heroku free account to host my college website? I may get
upto 500 visitors per month. Mostly all pages are static in nature and
it just gives information about the college and the facilities offered
by it. How many months will the app be free? is it free for
lifetime? Anyone please
Hi,
I use prawn to generate invoices in local languages for nine
countries. When generating pdfs for Latvia and Lithuania some chars
get substituted with underscores. These are chars like: ē.ķ.ą, That
is: 271 e with macron, 302, k with ogonek the other way (?), 263 a
with ogonek. There might be
On Tue, Jun 7, 2011 at 6:45 AM, sukesh sukesh1...@gmail.com wrote:
Can i use Heroku free account to host my college website? I may get
upto 500 visitors per month.
Holy cow, that's almost, uh, let's see, a visitor an hour? Yes, I'd
imagine Heroku hosting can handle that :-)
How many months
Okay, I'm chaining methods. I want access to my class. I can access
SomeClass with a method like some_class. Now with engines in Rails
3.1, I can use modules to break apart my codebase. So now, SomeClass
would be Engine::SomeClass. If I try to access Engine::SomeClass with
a similar style method
Heroku can (and will) answer those questions for you. Submit them as
pre-sales questions and they'll tell you the facts.
Last time I asked (for myself), they said that traffic is unlimited, you pay
only if you increase your dynos to 2 or have any add-on features. You should
note that Heroku
On Jun 7, 2011, at 10:19 AM, Jason Fleetwood-Boldt wrote:
That's their current pricing model but of course I'm affiliated with nor am I
speaking on behalf of Heroku, just telling you what I know
For the record, what I meant to say was: I'm NOT affiliated with
--
You received this
On 7 June 2011 14:45, sukesh sukesh1...@gmail.com wrote:
Can i use Heroku free account to host my college website? I may get
upto 500 visitors per month. Mostly all pages are static in nature and
it just gives information about the college and the facilities offered
by it. How many months
I'm using devise and in application_controller I have before_filter
:authenticate!
In sector_controller I have:
skip_filter :authenticate_user!, :only = [:index, :search_categories_by_sector]
When I run rspec it says: undefined method authenticate!, even for
index action.
But I' set skip_filter
On 7 June 2011 15:45, Mauro mrsan...@gmail.com wrote:
I'm using devise and in application_controller I have before_filter
:authenticate!
In sector_controller I have:
skip_filter :authenticate_user!, :only = [:index,
:search_categories_by_sector]
When I run rspec it says: undefined method
On 7 June 2011 14:48, Colin Law clan...@googlemail.com wrote:
On 7 June 2011 15:45, Mauro mrsan...@gmail.com wrote:
I'm using devise and in application_controller I have before_filter
:authenticate!
In sector_controller I have:
skip_filter :authenticate_user!, :only = [:index,
Anyone have experience re-writing the rails router to add support for
a carddav service?
If you know of any resources, please send them my way.
Thanks!
--
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
On 7 June 2011 15:53, Mauro mrsan...@gmail.com wrote:
On 7 June 2011 14:48, Colin Law clan...@googlemail.com wrote:
On 7 June 2011 15:45, Mauro mrsan...@gmail.com wrote:
I'm using devise and in application_controller I have before_filter
:authenticate!
In sector_controller I have:
Have some way to I get a formated date/time on rails?
I know I can get date/time by timestamps
created_at :datetime
updated_at :datetime
Bu, I can get with an formated way when I call the date/time on a block?
like php for example (M, D, Y) and not the complete information
2000-01-01
On 7 June 2011 16:25, Fernando Aureliano m...@fernandoaureliano.com wrote:
Have some way to I get a formated date/time on rails?
I know I can get date/time by timestamps
created_at :datetime
updated_at :datetime
Bu, I can get with an formated way when I call the date/time on a block?
like
Thanks a lot for the reply!!
Sukesh
On Jun 7, 7:04 pm, Hassan Schroeder hassan.schroe...@gmail.com
wrote:
On Tue, Jun 7, 2011 at 6:45 AM, sukesh sukesh1...@gmail.com wrote:
Can i use Heroku free account to host my college website? I may get
upto 500 visitors per month.
Holy cow, that's
Thanks a lot for the reply!!
Sukesh
On Jun 7, 7:22 pm, Colin Law clan...@googlemail.com wrote:
On 7 June 2011 14:45, sukesh sukesh1...@gmail.com wrote:
Can i use Heroku free account to host my college website? I may get
upto 500 visitors per month. Mostly all pages are static in nature and
I think what you want is date.strftime(%d/%m/%Y)
2011/6/7 Colin Law clan...@googlemail.com
On 7 June 2011 16:25, Fernando Aureliano m...@fernandoaureliano.com
wrote:
Have some way to I get a formated date/time on rails?
I know I can get date/time by timestamps
created_at :datetime
Thanks a lot for the reply!!
Sukesh
On Jun 7, 7:22 pm, Colin Law clan...@googlemail.com wrote:
On 7 June 2011 14:45, sukesh sukesh1...@gmail.com wrote:
Can i use Heroku free account to host my college website? I may get
upto 500 visitors per month. Mostly all pages are static in nature and
On 7 June 2011 15:07, Colin Law clan...@googlemail.com wrote:
On 7 June 2011 15:53, Mauro mrsan...@gmail.com wrote:
On 7 June 2011 14:48, Colin Law clan...@googlemail.com wrote:
On 7 June 2011 15:45, Mauro mrsan...@gmail.com wrote:
I'm using devise and in application_controller I have
Thanks a lot for the reply!!
Sukesh
On Jun 7, 7:22 pm, Jason Fleetwood-Boldt t...@datatravels.com wrote:
On Jun 7, 2011, at 10:19 AM, Jason Fleetwood-Boldt wrote:
That's their current pricing model but of course I'm affiliated with nor am
I speaking on behalf of Heroku, just telling you
On 7 June 2011 17:12, Mauro mrsan...@gmail.com wrote:
On 7 June 2011 15:07, Colin Law clan...@googlemail.com wrote:
On 7 June 2011 15:53, Mauro mrsan...@gmail.com wrote:
On 7 June 2011 14:48, Colin Law clan...@googlemail.com wrote:
On 7 June 2011 15:45, Mauro mrsan...@gmail.com wrote:
I'm
On 7 June 2011 16:33, Colin Law clan...@googlemail.com wrote:
I haven't used Devise though
What to you use to authenticate?
Could it
be due to the fact that you are using InheritedResources?
I think so, I'll do more testing.
--
You received this message because you are subscribed to
On Tuesday, June 7, 2011 8:16:02 AM UTC-6, frizbe1605 wrote:
Okay, I'm chaining methods. I want access to my class.
Access your class as in: obj.class (or something else)?
I can access
SomeClass with a method like some_class.
Do you mean you can take a string some_class and call:
On Saturday, May 28, 2011 8:14:47 AM UTC-6, Erwin wrote:
In Rails 3 , it's possible to write a query like
account_type = AccountType.where(:membership_fees = 0; :locale =
{:code = I18n.locale}).first
to find records when membership_fees == 0
( AccountType belongs to Locale)
is it
Haven't tried it, but maybe grouping on posts.id would do the right
thing?
--Matt Jones
Hello Matt, thanks for the answer. I've try it and it works fine
except when you call to count method later. I've solve it well:
scope :finded, lambda {|id| where(:id = id)}
scope :tagged, lambda
Hi all.
I need directly access to the file.
Like this:
File.read(File.join(Rails.root,public/stylesheets/head.css))
Because I use
https://github.com/mileszs/wicked_pdf/blob/master/lib/wicked_pdf_helper.rb
How can I get the real path name of file, where I use assets.
I need not assets_path. I
Hi!
I set SiController file to utf-8 encoding and rails gave me this
error.
I stumbled on an article about converting rails app to use utf-8, but
I didn't try it, because I created a single controller for testing
rails new gold, rails generate controller Si index, rails
server, went to
Saturn Technical Systems has an immediate need for a Ruby on Rails
(ROR) Developer. This project will be in Chicago, IL. Initial
duration is 6-12 months, but extensions are very likely. We need
someone that has 3-5 years of ROR, additional experience should
include PHP and SQL. Client will
I have a stock-related rails app, and I want to test the Price model. Each
price object represents daily price
data for a single Equity, which in turn belongs to a single Issuer. I've
run the test with the following fixtures and get this
error:
===
On 7 June 2011 21:42, ddoherty03 ddohert...@gmail.com wrote:
I have a stock-related rails app, and I want to test the Price model. Each
price object represents daily price
data for a single Equity, which in turn belongs to a single Issuer. I've
run the test with the following fixtures and
On 7 June 2011 22:00, ddoherty03 ddohert...@gmail.com wrote:
Colin,
price.rb ===
class Price ActiveRecord::Base
belongs_to :equities
That should be :equity, singular
Colin
--
You received this message because you are subscribed to the
Thanks, Colin. That did it. You 'da man.
Snow blindness strikes again.
Regards,
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on the web visit
Anyone going to Startup Weekend NYC on June 10-12? Let me know!
-Rodrigo
--
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 unsubscribe from this group, send email
Upgraded from rails 3.0.7.rc1 to 3.0.8 today and ran into a problem when
rendering haml:
TypeError in Pages#home
Cannot modify SafeBuffer in place
Full Trace:
activesupport (3.0.8)
lib/active_support/core_ext/string/output_safety.rb:122:in `gsub!'
haml (3.1.1) lib/haml/compiler.rb:382:in
I am loading a partial via AJAX in my Rails 3 app. I want to have some
partial related JS loaded when that partial loads so that I am only
loading JS when needed.
No matter what I do, I cannot get the JS script elements to render.
I have used variations of the Rails javascript load helpers as
On Jun 7, 2011, at 10:05 PM, elliottg wrote:
I am loading a partial via AJAX in my Rails 3 app. I want to have some
partial related JS loaded when that partial loads so that I am only
loading JS when needed.
No matter what I do, I cannot get the JS script elements to render.
I have used
Thanks for the input Walter, I think this will set me in the right
direction.
While I have your ear, do you know the solution for jQuery? I am
seeing a bit about .load() have some tag stripping issues but have yet
to find the solution.
Thanks, EG
--
You received this message because you are
59 matches
Mail list logo