search for: srobertjam

Displaying 12 results from an estimated 12 matches for "srobertjam".

Did you mean: srobertja
2006 Jul 14
3
Faxing from RoR
I need to send faxes from my RoR app (Linux based). I guess this could be done either VoIP or a web service (I don''t want to use a fax modem and regular line). Any advice - softwrae, services, or experience? -- Posted via http://www.ruby-forum.com/.
2006 Nov 01
17
So how can I rewrite my app without using with_scope?
So, I hear that with_scope is going to be deprecated. Which is a bit of a shame, given the stuff I''ve been writing recently. I have a CMS with multiple clients. A ''client'' is essentially a company, with multiple users. Content on the site belongs to a client - content could be messages, images, schedules, etc etc. People belonging to one client should not be able
2007 Apr 30
1
ActiveRecord: removing validations or callbacks on a subclass
Often a parent class has validations (or callbacks or associations) which I don''t want the subclass to have. Is there any simple way to remove these? --~--~---------~--~----~------------~-------~--~----~ 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
2007 May 29
1
YAML fails when has_one is null
My model has_one :association If I call model.to_yaml (or y model) in the console, and the association is nil, I get a yaml error. Anyone else get this? Is this a confirmed bug? --~--~---------~--~----~------------~-------~--~----~ 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
2006 Jun 30
4
ActiveRecord Migrations, without autonumbered PK''s
I love using ActiveRecord Migrations to build tables. Sometimes, I don''t want to use autogenerated PK''s - I want to set them automatically (why? I''m importing read only data from a large list of medications, and want to use the PK''s assigned by the medication research company...). Is there anyway to do this using Migrations? I know that I don''t
2006 Jun 29
14
TDD and migrations?
TDD, SVN and migrations seem to be a natural combination for model development: create a test, add the column with a migration, write the code, and check it all in when you''re done. The trouble is that this ends up creating one migration per field. I guess it''s not horrible in and of itself, but it does have a code smell to it. Has anyone come up with a different way of doing
2007 Mar 30
7
Some additional attacks on Cookie Session
Aside from the replay attacks discussed, there are some other attack vectors on the cookie_session store. I appreciate (and admire!) Jeremy''s good humor on all of this: > Planting the seed here led to quick ripening and plenty of pesticide. > Thanks for the fish, all. > > jeremy Anyway, here''s what we came up with: 1. Brute Force SHA512 can be computed _very_ fast.
2006 Jul 17
0
Modifying URLs
I''d like to be able to take a URL and add or modify a param, just like url_for does in ActionController. However, I''d like to be able to do this for a URL taken as a string, without a controller behind it. So I can''t just call url_for. Any ideas? What''s the best way to do this? -- Posted via http://www.ruby-forum.com/.
2006 Jun 30
2
has_many through - getting the parent
has_many :through is great. Is there anyway to find the association that it went through? Example: class Student has_many :projects has_many :grades, :through => :projects end student.grades[3].project Is it clear what I''m asking? How would this be done? -- Posted via http://www.ruby-forum.com/.
2006 Dec 25
0
Why ActiveResource won't make it...
One of ActiveRecord''s greatest strengthes is its fluidity. Change a col in your db, restart, wham!, new class. This type of behavior is great for *internal* code. But for published interfaces, it''s the exact opposite of what you want. Let''s say I have a calendar web app, and expose a web service - via ActiveResource - for you to hook in your local GUI app (or command
2007 Mar 21
1
Eager Loading with custom :finder_sql
Is there any way to do eager loading when using custom :finder_sql ? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to
2006 Jul 14
7
Using ActionView free style
ActionView is a very useful class, in its own right. But, calling it by itself causes a weird crash, exiting Ruby, without even raising an exception! ruby script/runner "begin; av = ActionView::Base.new; av.render(:inline => ''Hi!''); rescue => e; puts e; end" just crashes Ruby. Same with render(:file => ''template.rhtml'') Why is this?