Sorry I really just wanted to have a title to catch attention.
I've had no luck with attachment_fu. It almost works but I've failed
at finding a solution to it's pitfalls.
(http://groups.google.ca/group/rubyonrails-talk/browse_thread/thread/
1101ec5b888b3020/a0418430e0b59f42?lnk=gst&q=brianp#a0418
Hi
I have models user and user_status An user always elongs to a
particular status at any time Status table has predefined values like
"pending","approved" etc My question is what should be the table
structure and relation between these models? I am trying like putting
status_id in users table
I have the below code - I cannot use alias_method_chain unless I
declare :accepted= before using it - i suppost the attribute methods
are added latter - I suspect that this case is blowing away my
alias_method_chain
How can i complete this intention correctly, doing it the rails-way and pretty?
I fixed the problem by going into /usr/bin/rake
and changing line 17 to just gem instead of require_gem
1 #!/usr/bin/ruby
2 #
3 # This file was generated by RubyGems.
4 #
5 # The application 'rake' is installed as part of a gem, and
6 # this file is here to faci
Your solution didn't work for me. Even after uninstalling all versions
of rake and reinstalling. rake -v still doesn't run.
>
> "sudo gem uninstall rake -v 0.8.3"
>
> "sudo gem update rake".
>
> rake -v runs again, at least.
>
> Still wondering if there's any good way to 'downgrade' the RubyG
Currently, I allow my users to dynamically add new fields to a form
using the link_to_function variable. However, whenever a new field is
added, its inputs have the same names as the previous fields. I
solved this by passing in a local variable, but I can't get that value
to increment (or update)
Frederick Cheung wrote:
> On Jan 2, 5:21�pm, Laim Bee wrote:
>> Frederick Cheung wrote:
>
>> How does Rails know when you click the Submit button, that you want to
>> initiate the create method in the comments controller?
>
> The conventions (in particular REST) that rails uses dictate that to
>
I understand.
My apologies for my rudeness.
On Jan 4, 7:25 pm, Marnen Laibow-Koser wrote:
> Ron Green wrote:
> > This is not a real app. so stuff your perversion and top posting.
>
> Be polite if you want help. And if it's not a real app, then why waste
> your time on it? Presumably to learn go
On 2010-01-05T04:48:19, Tom Mac wrote:
> I am trying to setup rubyonrails with a fresh installation of
> fedora linux.My question is should the partition type ext4 or ext3 for
> frdora? If it is ext4 and then installing rubyonrails is there any
> prolem?
Either file system type is fine. I use ex
Hi
I am trying to setup rubyonrails with a fresh installation of
fedora linux.My question is should the partition type ext4 or ext3 for
frdora? If it is ext4 and then installing rubyonrails is there any
prolem?
Thanks in advance
Tom
--
Posted via http://www.ruby-forum.com/.
--
You receive
Wanted: Adventure &/or Social Change-Seeking Web app & Mobil app
developers/cofounders & Tech Advisor
For unusual web app startup with huge social value and financial
potential, and also for fun mobile apps.
MISSION: The web app is a conceptual advance in using the Internet to
help couples to sa
Never mind! I was using an invalid ID which is why it never showed a
value.
--
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 rubyonrails-t...@googlegroups.com
Hey so all of the articles I read on this say that if you're going to
have two belong_to's to a single table ti should look something like
this
belongs_to :player, :foreign_key => "player_one"
belongs_to :opponent, :class_name => "Player", :foreign_key =>
"player_two"
That seems to work okay
On Tue, Dec 29, 2009 at 5:06 PM, Marnen Laibow-Koser
wrote:
>> Perhaps what's been lost here is the original question -- how do you
>> use test-data generators like Machinist/Sham when you need an
>> example of *invalid* data, that is, values not in the generated set?
>> It's simple with fixtures
Sorry everyone. Wrong diagnostic.
get :new, :site_id => 1005
is the correct way to pass params to "get." I just messed up my
fixtures. That's all.
On Jan 4, 2:16 am, Colin Law wrote:
> 2010/1/4 Vincent P :
>
> > I have a RESTful :new method to present a form. I have implemented
> > this new
comopasta Gr wrote:
>>> restful_auth fills your user model with unmaintainable generated code
>
> Hi Marnen,
>
> Yeah I do agree with you. Maybe Tom Mac wants to start with that one to
> see the basic steps required (due to simplicity) and then move to
> authlogic.
No! That would require ripp
Ron Green wrote:
> This is not a real app. so stuff your perversion and top posting.
Be polite if you want help. And if it's not a real app, then why waste
your time on it? Presumably to learn good practice, right?
> I got this from RailsCasts
> http://railscasts.com/episodes/35-custom-rest-ac
Hi Adrien,
On Mon, 2010-01-04 at 15:54 -0800, Adrien Coquio wrote:
> Hi !
>
> I need to create some pdf from my application. I have a table people
> with a field address and I need to generate a pdf of label of each
> address ( I think 10 labels per page). The pdf can have around 500
> pages.
> W
Have you thought about using Single Table inheritance (STI) for the
User model? A Google search of "rails single table inheritance" will
yield some good tutorials.
One of the big reasons for not using STI is if your models are very
different with regards to attributes of the sub classes that get
> Hi,
>
> I have an application where I based on users selections generate a
> dataset for them to download and a graph describing this data. The
> graph is made with gnuplot and work really well - no problems :-)
>
> But I save the graph to a file say "graph.png" in the public/images
> dir and use
Hi All,
We have our Advanced Rails training class with Wolfram Arnold coming
up in January with additional dates in March and June.
Wolfram is one of the top Rails experts in the US and frequently
presents at Ruby and Rails conferences across the country. You can see
some interesting videos of Wo
Hi,
I have an application where I based on users selections generate a
dataset for them to download and a graph describing this data. The
graph is made with gnuplot and work really well - no problems :-)
But I save the graph to a file say "graph.png" in the public/images
dir and use it in the vie
Hi,
WordPress is a PHP-based blogging engine. The MU version supports
multiple blogs in the same database (as opposed to just one in the
basic WordPress app) I'm looking at writing some Rails-based admin
modules to interact with WordPress MU.
WordPress MU creates a separate set of tables for ea
Hi !
I need to create some pdf from my application. I have a table people
with a field address and I need to generate a pdf of label of each
address ( I think 10 labels per page). The pdf can have around 500
pages.
Which library should I use to do it ? I read some information about
different libra
That's the best way I can describe the weird behavior I'm seeing.
Anybody else ever seen this?
A page that has no database calls (verified in mysql log), shows this
in its log:
Completed in 2ms (View: 1, DB: 663)
Which is obviously fishy. And the query genuinely takes about 700 ms.
??
--
You
Hi there,
I'm working on a Rails App, in which I use the gems Authlogic and
Declarative Authorization to put Users into different roles.
But because the roles are very different from each other, I thought it
would be better, if every usertype gets its own databasetable / model.
The model [b]Stude
>> restful_auth fills your user model with unmaintainable generated code
Hi Marnen,
Yeah I do agree with you. Maybe Tom Mac wants to start with that one to
see the basic steps required (due to simplicity) and then move to
authlogic.
But you are right Marmen, restful_auth is full of "unknown" c
hi,
im running a simple chatapplication to explore the juggernaut server
and its features. everything is working fine, but the "issue" im
facing is that, whenever juggernaut "kicks is", the browser, FF, gives
me those popup-windows...
- Juggernaut is connected to...IP
- Juggenraut lost connection
Merrick Christensen wrote:
> Forgive this mis targeted email, I didn't know where else to send it
> to be truthful. I am building an application using Ruby on Rails, I
> need to know what SMS based service Highrise is using or something
> similar. Anyone have experience sending sms messages from Ra
got it working - Thank you!
On 4 Jan, 20:41, RubyonRails_newbie
wrote:
> Thanks Ashif,
>
> I like your blog - it makes sense, however I'm not 100% sure where
> ''require(File.join(File.dirname(__FILE__), '../../../../config/
> environment'))'' is meant to go in the server_manager.rb file.
>
> CHe
>
> I think yaml keys need to be strings, not symbols, i.e. that would read:
>
> development:
> bit_ly:
> login: something
> api_key: secret
> history: 0
>
> Felix
Well I followed the info provided here:
http://blog.innovativethought.net/2009/01/02/making-configuration-files-with-
Thanks Ashif,
I like your blog - it makes sense, however I'm not 100% sure where
''require(File.join(File.dirname(__FILE__), '../../../../config/
environment'))'' is meant to go in the server_manager.rb file.
CHeers
On 4 Jan, 19:17, Ashif Manjur wrote:
> Hi, are you using mongrel server for you
Am 04.01.2010 um 21:09 schrieb Quee WM:
> I have the following app_config.yml in rails_root/config/
>
> development: &non_production_settings
> :bit_ly:
>:login: "x"
>:api_key: "x"
>:history: "0"
>
> test:
> <<: *non_production_settings
>
> production:
> :bit_ly:
Thanks for the help. That put me on the right path.
--
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from thi
Hi,
I have the following app_config.yml in rails_root/config/
development: &non_production_settings
:bit_ly:
:login: "x"
:api_key: "x"
:history: "0"
test:
<<: *non_production_settings
production:
:bit_ly:APP_CONFIG = YAML.load(File.read(RAILS_ROOT +
"/config/ap
Pale Horse wrote:
> Could anyone tell me (or link me to) the best place to learn about RoR
> Module Generators?
What do you want to know?
And what are you going to use them for? Unless they generate
*extremely* skeletal code, generators are a bad thing. (See
restful_authentication for an examp
I have a set of Capistrano recipes that dumps the database and shared
assets to another server/machine for each application. You can
download them from:
http://github.com/firsthand/application-backup
What I like about this approach is that all the backup configuration
is centralized along with th
Hi, are you using mongrel server for your production? If yes then you
must make sure that you start your ferret server before starting your
mongrel or apache/nginx servers. also you can share the index folder
across your all production deployment. one thing is important to
remember that your in
I want to convert web page in to a XML document and validate it with a
XML Schema.Can I do this with Ruby on Rails framework. Please let me
know.
--
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 rubyonr
Problem solved!
Hi again Fred,
I tried user.detect {|current_user| current_user.hashed_password
==User.encrypt(password,current_user.salt)} and it worked like a
charm.
thx a million yet again for ALL your help,
radu
On Jan 4, 7:34 pm, Frederick Cheung
wrote:
> On Jan 4, 4:53 pm, radu puspana
Ah, according to the message I got back, it was already running.
I've stopped it and re-started it, but i'm still getting the same
error
On 4 Jan, 11:39, RubyonRails_newbie
wrote:
> thanks for that.. I will take a look.
>
> Hopefully that will start it..so basically I run ruby script/
> ferr
On Jan 4, 4:53 pm, radu puspana wrote:
> On Jan 4, 6:22 pm, Frederick Cheung
> wrote:
>
> Sry for bothering you agan but shouldn't it be :
> user.detect {|current_user| current_user.hashed_password ==
> User.encrypt(password,current_user.salt)} reather than user.detect {|
> current_user| current
comopasta Gr wrote:
[...]
> I recently started using authlogic. Before I used
> restful-authentication:
> http://github.com/technoweenie/restful-authentication
>
> Here's a tutorial for that one also:
> http://railsforum.com/viewtopic.php?pid=74245#p74245
>
> ---
>
> I've managed to get authlog
On Jan 4, 6:22 pm, Frederick Cheung
wrote:
> On Jan 4, 4:10 pm, radu puspana wrote:
>
> > and this line : user.detect {|current_user| current_user ==
> > User.encrypt(password,current_user)}, shouldn't be something like
> > user.detect {|current_user| current_user == User.encrypt
> > (password,
database.yml: http://pastie.org/766054
>> ActiveRecord::Base.connection_pool.spec
=> #nil, :username=>"developer", :database=>"foobar",
:adapter=>"mysql", :encoding=>"utf8", :host=>"localhost"},
@adapter_method="mysql_connection">
error: Access denied for user ''@'localhost' to database
'foobar
On Jan 4, 4:10 pm, radu puspana wrote:
> and this line : user.detect {|current_user| current_user ==
> User.encrypt(password,current_user)}, shouldn't be something like
> user.detect {|current_user| current_user == User.encrypt
> (password,current_user.salt)}
that's right.
This means: iterate ove
On Jan 3, 6:50 pm, Frederick Cheung
wrote:
> On Jan 3, 4:37 pm, radu puspana wrote:
>
> > user.each do |correct_user|
> > expected_password = User.encrypted_password(password, correct_user.salt)
> > if correct_user.hashed_password == expected_password
> > idx = user.index(correct_
hey thitima,
thx for letting us know about the site, we shall check it out.
Best wishes for 2010 :)
hugs,
radu
On Jan 4, 5:39 pm, thitima panyayai wrote:
> Dear friends,how are you ?
> I found a website (www.motonn.com),
> There are many products, laptop computers,mobile phones, digital
> cam
Dear friends,how are you ?
I found a website ( www.motonn.com),
There are many products, laptop computers,mobile phones, digital
cameras, DJ Equipment, etc.
The most important is that the price is very cheap, and they delivery fast .
I have received my product, quality is very good,
I know you are
So... I have got little problem with I18N on my production server...
Development server using webrick when I make POST request (Sending
form) with not existing translation I have got result like:
# translation missing: es, surname translation missing: es,
invalid_field_with_e_end
# translation mis
Could anyone tell me (or link me to) the best place to learn about RoR
Module Generators?
--
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 rubyonrails-t...@goo
Thank you so much! That worked perfectly! :)
On Jan 3, 12:37 pm, Frederick Cheung
wrote:
> On Jan 3, 5:14 pm, jm wrote:
>
> > Post Load (0.4ms) SELECT * FROM "posts" INNER JOIN "posts_tags" ON
> > "posts".id = "posts_tags".post_id WHERE ("posts_tags".tag_id = 1 ) AND
> > (("posts"."published
Thank you! this works
Happy new year!
On Dec 30 2009, 6:00 pm, Robert Walker wrote:
> Ro wrote:
> > then I put in " Show Error Detail Link " a <%= link_to
> > "Show", :controller => "error_details" ,:action =>
> > "index", :task_errore => error.type %>
> > and create method in error_detail
For a free, albeit with limited options, check out the sms_fu plugin.
For more options, with pay as you go messaging, check out something
like clickatell along with the gem of the same name.
\Peter
On Jan 3, 1:04 pm, Merrick Christensen
wrote:
> Forgive this mis targeted email, I didn't know whe
Ben Teese wrote:
> if from_addresses.size == 1
> errors.add("'From' address", "is not a known sender ") unless
> Sender.find_by_email_address(from_addresses[0])
> else
> errors.add("'From' addresses", "expected to contain one email
> address")
> end
I think your main probl
Hi,
Yes you can do that with authlogic. Take a look at the next tutorial.
http://github.com/matthooks/authlogic-activation-tutorial
---
I recently started using authlogic. Before I used
restful-authentication:
http://github.com/technoweenie/restful-authentication
Here's a tutorial for that on
Rob Nichols wrote:
> class Vehicle < ActiveRecord::Base
> before_save update_bit_ly_url
>
> def update_bit_ly_url
> bit_ly_url = CreateURL.bit_ly_for_vehicle(self.id)
> end
> end
Actually - just spotted that you'd have to use after_save or information
other than the id to generate the
Thank you for your response, It helped me a lot.
--
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this g
Quee WM wrote:
> I plan on writing a helper function which will be able to take the id
> for the new record and return the link.
Using a "helper" function implies that the coding will trigger as the
template is being rendered. If this is the case, you don't need an entry
in the database. Just wr
Hi,
I'm working on an application that generates excel sheet. I would like
resize cells so that it contains long contents. I'm using
spreadsheet/excel.
How can I do this?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Rub
I have one model User. And i have used
acts_as_commentable_with_threading plugin.
I am firing query
@comments = Comment.find(:all,:include => :user)
it generate mysql properly.
SELECT SQL_NO_CACHE * FROM `comments`
SELECT SQL_NO_CACHE * FROM `users` WHERE (`users`.`id` IN (1,4,5)) .
But when i am
thanks for that.. I will take a look.
Hopefully that will start it..so basically I run ruby script/
ferret_server from my app location on the hosts server?
Thanks again.
On 3 Jan, 18:33, Frederick Cheung wrote:
> On Jan 3, 5:39 pm, RubyonRails_newbie
> wrote:> Yes - it's installed:
> > already
is there a way to pass the data returned by the to_parm function in a
helper?
i followed the info provided at
http://www.jroller.com/obie/entry/seo_optimization_of_urls_in and am
able to successfully get the correct urls, now i want to be able to get
the same (id-whatever) text and pass it to a he
> In development mode, these new directories are not picked up.
Hi, anyone has an answer for this one?
I just tried to add some new path same way and it doesn't seem to pick
it. Running in development mode yet.
Thanks.
--
Posted via http://www.ruby-forum.com/.
--
You received this message be
In my project i require a bit.ly link for each new product entered in
the database. Please guide me on how to do this?
Note: I am using a standard rails app with basic actions to test this
code
I plan on writing a helper function which will be able to take the id
for the new record and return the
2010/1/4 Vincent P :
> I have a RESTful :new method to present a form. I have implemented
> this new method to use a params value params[:site_id]. For example,
> the URL to this form would be : http://localhost:3000/reviews/new?site_id=1005
> Now I need to test this new method. How do I put in
Ahmed Abdelsalam wrote:
> Hello,
>
> I'm using the spreadsheet/excel gem to generate an excel sheet that I
> want user to be able to download it once it's generated. Please take a
> look on the below code:
[snip]
> workbook.close
> send_file "#{RAILS_ROOT}/public/reports/#{file}"
I have a post that explains the installation for both RMagick and
ImageMagick at
http://rails.webintellix.com/index.php/2010/01/how-to-install-rmagick-imagemagick-on-windows/.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
Hi
My requirement is upon sign up a new user is created with the given
emailid etc and the admin user get an email about this request.When he
approves the request an email is sent to this user and now the user can
login to the application..How can I do this? Can I do this with
authlogic?
Thanks
test
--
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubs
Thanks. That makes sense. Much appreciated!
On Jan 3, 7:46 am, Rick DeNatale wrote:
> On Sun, Jan 3, 2010 at 4:27 AM, acreadinglist wrote:
> > Can someone clarify what type of object is returned from a find
> > (:select => ...) statement that only selects a subset of the records
> > columns?
>
71 matches
Mail list logo