[Rails] Video Streaming on RoR

2017-09-08 Thread Alexander Orlas Gutiérrez
Hi everyone I hope all of you be well I'm in a proyect that needs streaming video and chat in real time and i already know that the chat can be make with ActionCable but i don't know how to make the video streaming. Some people told me that it can be make with NodeJS o a service that provide vi

[Rails] [JOBS] Sr Ruby on Rails Developer (Seattle) Full Time (Not Contract)

2016-10-19 Thread Alexander Ryseff
Viri Technology is seeking a senior level, full stack software engineer for a software client in Seattle. This is a unique opportunity for a few reasons: - It's a BIG TIME software company - They have a highly collaborative team, and it's the kind of team that loves sharing ideas, paired pr

[Rails] Identifying a Memory Leak

2016-05-01 Thread alexander . maznev
So I've been struggling a little bit with the different odds and ends of this - particularly because the tooling / resources don't seem to be very comprehensive or well organized. I've been using this guide as a reference https://samsaffron.com/archive/2015/03/31/debugging-memory-leaks-in-ruby

[Rails] Problems showing modals when page is loaded with turbolinks

2015-12-03 Thread Alexander Trust
Hello. I'm trying to use modals for the output of :notices or :errors. In the application.html.erb I use: <% flash.each do |name, msg| %> <% if msg.is_a?(String) %> <%= msg %> Close

[Rails] ActiveRecord: preloading on relations with a select clause

2015-11-30 Thread alexander . maznev
Hello, It turns out that our Apps Variant relation model + ActiveRecord Relations produces some very funky behaviour which was preventing it from being used in .includes preloads. Background: Our App's variant model has a boolean column(composite) and they reflect back on themselves through a

[Rails] Adding a Postgres ENum type via. migration breaks db/schema.rb table entry

2015-11-11 Thread alexander . maznev
Hello, So I'm adding a Postgres Enum Type with a migration but I'm having a problem with db/schema.rb output breaking when I do this: def up execute <<-SQL.squish CREATE TYPE three_letters_type AS ENUM ( 'A', 'B', 'C', ); SQL execute <<-SQL.squish ALTE

[Rails] Rigorous discussion on lack of baked-in authentication

2015-07-08 Thread Alexander Farley
Has there been any rigorous discussion of why Rails doesn't have baked-in authentication? I've seen a handful of posts alleging that "authentication varies too much" but I'm having trouble envisioning which fundamentally distinct use-cases would prevent a single library from solving 98% of user

[Rails] Self referencing model: how to join columns from join table in childrens as well

2015-02-01 Thread Alexander Fitterling
Dear everyone, I'd like to ask two questions, how can I optimize my performance of my current model? I'd like to use the information from translations table as it is (all columns) => Translation(id: integer, word_id: integer, conversion_id: integer, created_at: datetime, updated_at: dat

[Rails] Re: Rails Developer for hire, remote

2014-09-08 Thread Alexander Batalov
hire me here: https://www.elance.com/s/alexbatalov/ -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrail

[Rails] Rails Developer for hire, remote

2014-09-02 Thread Alexander Batalov
Hi! My name is Alexander. I'm passionate about learning new stuff and building things. I have experience designing UI/UX for 4 years and rails development for 1.2 years . I've build and deployed bunch my own rails apps to Heroku and Linode.com. As being student at TeamTreehouse.com

[Rails] Re: Help with ckeditor image upload

2014-08-26 Thread Alexander Trust
Now you have an argument to tell your boss he or she should buy a Mac for you. :) On Tuesday, August 26, 2014 2:17:18 PM UTC+2, frocco wrote: > > I tried my rails app last night on my mac and it works fine. >> >> Today at work on my windows 7, it fails with [paperclip] Content Type > Spoof: File

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Alexander Trust
I looked into the source of the ckeditor gem (cf. https://github.com/galetahub/ckeditor) and read a bit in its documentation today... I would say Rails acts nearly in the same manner as php would. You integrate the JS, you create a view with a form and add the corresponding classes to it. Tha

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Alexander Trust
I have to admit, that I'm as well very new to Rails. :) I have not yet installed paperclip nor ckeditor but I'm working on an app on my own and your "case" seemed interesting to me because I also want to add an editor for editorial purposes writing and maintaining blog posts. Hence I made a bit

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Alexander Trust
Which version of Paperclip do you use? There was a security issue with file types hence they changed the behaviour in version 4.0 of paperclip, but of course there was an error in 4.0 concerning content type mapping. In 4.1 they introduced a possibility to add options like so: Paperclip.options

[Rails] How do I install Ruby on Rails on a CentOS server?

2014-08-12 Thread Alexander Joseph
Hi, I'm new to Ruby and Ruby on Rails. I have a CentOS server which is part of an offline/private network. I need to install Ruby on Rails, MySQL, Apache, and PHPmyAdmin on the server and be able to take and keep the server offline after the install. Does anyone have any resources on how to go abou

[Rails] New service Teatro.io

2014-07-08 Thread Alexander Balashov
I would to introduce new type of services https://teatro.io/ . It helps to create staging servers for testing Ruby on Rails applications. 1. it creates stage server automatically, in most cases without any actions from developer's side. You just chooses from your repos on Github or Gitlab. 2. it

[Rails] Bundler could not find compatible versions for gem "activesupport"

2014-07-02 Thread Alexander Timoshilov
I tried to set up Searchlogic gem to my blog app and got an error: Bundler could not find compatible versions for gem "activesupport": In Gemfile: searchlogic (~> 2.5.17) x86-mingw32 depends on activesupport (~> 2.3.12) x86-mingw32 rails (= 4.1.1) x86-mingw32 depends on activ

[Rails] formtastic: radio button collection image_tag

2014-06-16 Thread alexander ryder
Hello, I would like to ask, how am I going to integrate an image tag during edit on formtastic for a collection of array of images? form do |f| f.inputs "Building" do f.input :name *f.input :image,

[Rails] Re: Rails 4 assets:precompile very slow all time

2014-06-09 Thread Alexander Selivanov
same trouble, any ideas? пятница, 25 октября 2013 г., 12:02:25 UTC+6 пользователь oli...@eboutic.ch написал: > > Any idea ? Just tell me if I understand the process > > Le mardi 22 octobre 2013 10:20:34 UTC+2, oli...@eboutic.ch a écrit : >> >> Hi, If I good understand, Rails 4 compile only change

[Rails] How to know which gem version to install (Rails 3.2)

2014-01-14 Thread mike alexander
I'm using Rails 3.2 and when I'm on github I'm not sure where I can find the correct version to install for rails 3.2. I'm sure it's simple but I can't figure it out. For example, Rails_Admin didn't put the css files in the correct place and I think the reason was because of the incorrect version.

[Rails] ActiveRecord, Squeel: Getting objects without parent associations

2013-10-10 Thread Alexander Kurakin
I have: class ThingsCollection < ActiveRecord::Base has_and_belongs_to_many :things, uniq: true end class Thing < ActiveRecord::Base has_and_belongs_to_many :things_collections, uniq: true end I want to get Things which don't have any ThingsCollections (thing.things_colllection_ids.empty? ==

[Rails] Fast PUSH notifications from Rails

2013-06-10 Thread Alexander Jeapie
Hello. If you wondering how to add PUSH notifications to your RoR based site - Jeapie can be useful to you. Gem is already on GitHub https://github.com/Jeapie/push-message-for-php5 You just install free mobile client app (iOS, Android). And after that you can request to Jeapie API. HTTP POST requ

[Rails] Re: how to setup wizard mult-part form

2013-02-07 Thread Alexander Dmitriev
You need to build new objects and save after last step. Or save all dates on session and save. Why do you not use the wizard gem? -- 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 unsubscribe

[Rails] Re: Hosting with email accounts?

2012-11-26 Thread Alexander DiMauro
After a little more searching, I discovered webfaction.com which seems pretty good in terms of Rails support. Most of the reviews I read were really good, the occasional issue which all hosts will have, but far fewer than most. Plus a 60 day refund policy, so I may just try them out. Anyone else

[Rails] Hosting with email accounts?

2012-11-25 Thread Alexander DiMauro
Heroku seems to have pretty much become the standard for Rails apps just starting out. Any time anyone asks which is the best host, the answer always seems to be Heroku. But, correct me if I'm wrong, Heroku does not include email accounts with their service? Most 'traditional' shared hosts also l

[Rails] Re: [JOB] ActionScript (AS3) Developer - NYC

2012-08-25 Thread Alexander D.
Hello, What kind of tasks are you talking about? I'm interactive developer sinse 2005, good in interactive online video, 3D and in motion design. I used to work for Ogilvy Interactive Moscow and now I'm the part of games.mail.ru (the beggest russian online game company). I would be glad if I coul

[Rails] render SVG in view

2012-08-20 Thread Alexander Farley
I'd like to render a nested hash as a tree SVG inside a view. It's becoming cumbersome to write the hash traversing inside the view. Is the appropriate location for the SVG generation inside a controller? If so, should I respond_to formal.xml? I would then call the SVG generation action from insid

[Rails] gsub appearing in xml

2012-08-09 Thread Alexander Farley
I'm using the 'builder' gem. I create an XML builder, add a sequence of tags with inner text, then escape the HTML, then save the object. Problem: The following gsub tag is appearing in my XML that I didn't put there. =">">(?-mix:[&\"<>]) Can someone explain where this tag is coming from? bui

[Rails] Re: Re: Re: Re: Re: Re: Re: TemplateError

2012-02-06 Thread Alexander Kurakin
Colin Law wrote in post #1044358: > On 6 February 2012 17:05, Alexander Kurakin > wrote: >>> When does the error happen? >> >> Attachments: >> http://www.ruby-forum.com/attachment/6961/Gemfile > > Are you sure that is the Gemfiile produced for a new app cre

[Rails] Re: Re: Re: Re: Re: Re: TemplateError

2012-02-06 Thread Alexander Kurakin
Colin Law wrote in post #1044347: > On 6 February 2012 16:33, Alexander Kurakin > wrote: >>> Have you editted the gemfile at all? >>> >>> Colin >> >> No. Just have deleted static 'public/index.html'. > > Some more questions > When

[Rails] Re: Re: Re: Re: Re: TemplateError

2012-02-06 Thread Alexander Kurakin
Colin Law wrote in post #1044341: > On 6 February 2012 16:15, Alexander Kurakin > wrote: >> Yes, my hosting use it with bundle install. Is possible sitation when >> versions conflicts (only version of rails '3.1.3' is specified in >> Gemfile)? > > Let me j

[Rails] Re: Re: Re: Re: TemplateError

2012-02-06 Thread Alexander Kurakin
Colin Law wrote in post #1044336: > On 6 February 2012 15:08, Alexander Kurakin > wrote: >>>>> Colin >> dificult to delete old gems.. They are used by another project. > I hope you are using RVM to help to manage gems and rails versions. > If not then I strong

[Rails] Re: Re: Re: TemplateError

2012-02-06 Thread Alexander Kurakin
Colin Law wrote in post #1044315: > On 6 February 2012 14:19, Alexander Kurakin > wrote: >>> >>> It would have been useful to know that first time round. I don't know >>> the answer in that case. If it happens for a particular view then >>> ag

[Rails] Re: Re: TemplateError

2012-02-06 Thread Alexander Kurakin
Colin Law wrote in post #1044312: > On 6 February 2012 13:17, Alexander Kurakin > wrote: >>>> ...' >>> >>> Colin >> >> I'm trying to migrate from 3.0 to 3.1. I didn't change some code yet. >> Only Gemfile, and bundle install. It

[Rails] Re: TemplateError

2012-02-06 Thread Alexander Kurakin
Colin Law wrote in post #1044304: > On 6 February 2012 12:28, Alexander Kurakin > wrote: >> I have an error in my unicorn log... Traces: >> >> Error during failsafe response: ActionView::Template::Error >> > /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpa

[Rails] TemplateError

2012-02-06 Thread Alexander Kurakin
I have an error in my unicorn log... Traces: Error during failsafe response: ActionView::Template::Error /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:11:in `block in render' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib

[Rails] What's a good site for rails jobs worldwide?

2012-01-22 Thread Alexander Farennikov
Hello, I am wondering if there's a good web site where people from across the globe post RoR job openings and search for jobs. If there's not one such place, I'd appreciate if you could recommend such job boards in Eastern Europe, South America and / or India. Thanks! -- You received this message

[Rails] Re: What is the "rails way" to filter an index actions results?

2011-11-05 Thread Alexander
Hi Max, I think this railscast might be helpful for you - http://railscasts.com/episodes/251-metawhere-metasearch Also, take a look on has_scope plugin - https://github.com/plataformatec/has_scope - it could help you to make your controllers skinny. Thanks, Alex -- You received this message

Re: [Rails] Cannot launch ruby server

2011-10-17 Thread Alexander Criollo
You have installed mysql ? 2011/10/17 Bartek Kowalski > Hi, > > I am on Mac OS X Lion. > > I installed Ruby on Rails and mysql2 gem. When I try to run the server > with "rails server" command, I get the following errors: > > /Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle: > dl

[Rails] ERB and binding in template

2011-08-31 Thread Alexander Kurakin
How to get current binding in a partial (to use helpers and local variables in erb script)? When I invoke result whithout binding, = ERB.new("script").result.html_safe all work (without vars are needed), but when I write = ERB.new("script").result(binding).html_safe (in HAML HTML partial), THE

[Rails] Re: 3.1rc8 - posting files in a test no longer works

2011-08-31 Thread Alexander Gitter
> Rails 3.1 enforces that parameters should look like what you'll > actually get in a test - you used to be able to stick arbitrary > objects in there which of course doesn't reflect what happens in the > real world. > fixture_file_upload should still work I have a similar problem. Until now I us

[Rails] Re: Bundle Install failing on deployment

2011-08-10 Thread Alexander Zubkov
Ok, here is the solution, that worked for me: gem 'gherkin', '2.4.5' -- 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-talk@googlegroups.com. To

[Rails] Re: Bundle Install failing on deployment

2011-08-10 Thread Alexander Zubkov
I have the same error even locally on Rails 3.0.9: /Users/sekrett/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:540:in `normalize_yaml_input': invalid byte sequence in US-ASCII (ArgumentError) mac os x 10.5.8 ruby 1.9.2-p290 bundler 1.0.17 rubygems 1.8.7 -- P

[Rails] Re: Namespaces and nested resources

2011-08-05 Thread Alexander Zinchuk
somebody please heeelp ) -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to ru

[Rails] Namespaces and nested resources

2011-08-04 Thread Alexander Zinchuk
Hello! I'm developing online game (Heroes fighting against Clans) and i'm planning next structure of my app: i've got top-level resources Heroes (profiles of supermembers) and Clans (profiles of groups of members). So i've got both HeroesController and ClansController. What i wanna do is give Her

[Rails] Re: invoke a class method on an array of objects?

2011-07-20 Thread Alexander Korsak
Hi. Try to do something like this: CatState.keys.map.each_with_object({}) { |k, h| h[k] = source.to_a.inject(0){|sum, a| sum += count_of(a)} [1,2,3].inject(0) {|sum, a| sum += a } as result => 6 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

Re: [Rails] How to change the url (from localhostL:3000) to (example.com)

2011-04-19 Thread Alexander
Open your /etc/hosts file in Linux. Windows is the same hosts file under some other directory. Any how puts the next line in the file 127.0.0.1 example.com Then if you "ping example.com" IP 127.0.0.1 will respond. now you can use example.com:3000 to access your web site. If you are not happy wit

[Rails] thinking sphinx: query price> 0

2011-04-14 Thread Vasin Alexander
Is a model of products with the indices define_index do indexes: name indexes description has product_shops.price,: as =>: price has catalog_product_connections.catalog_id,: as =>: catalog_id end Need ability to filter by price. The controller write this: Product.searc

[Rails] Re: polymorphic associations

2011-04-12 Thread Vasin Alexander
class Property "ProductProperty" End It was in the original model. In the amended accordingly will: class Property "ProductPropertyString" has_many :integer_values,: class_name => "ProductPropertyInteger" has_many :boolean_values,: class_name => "ProductPropertyBoolean" End But I think t

[Rails] polymorphic associations

2011-04-11 Thread Vasin Alexander
Sorry for my english if something goes wrong. I have a model of Property class Property "ProductProperty" End And correspondingly ProductProperty model in which values ​​are stored. class ProductProperty self.id) when 'ProductPropertyBoolean' ProductPropertyBoolean.where(:property_id

[Rails] easy scheduling without cron

2011-03-17 Thread Alexander Farley
Hi, my server doesn't allow shell access or scripts. What's the easiest way to schedule a script, from within ruby/rails? I need to schedule a script to scrape search results and store to a database once per day. I've googled but some of the solutions seemed overly complex, there should be a simp

[Rails] Making Mongrel/WEBRick serve static assets with future expires header

2011-03-16 Thread Alexander Malfait
I'm creating a Rails application which will be deployed to desktop machines, running both the webserver and the browser (it's a test- taking application which needs to be able to run without an internet connection). For this reason, I'll be running Mongrel or WEBRick, without an Apache/ Nginx in f

[Rails] Re: beginner question: database relationships

2011-02-07 Thread Alexander Farley
Ok, so I've discovered that user.topics.build can be done in the User edit form (in my project, not in the gem). However, I'm not sure how to save this newly built topic; normally this would be done by the topic controller catching the POST right? But in this case it's not the topic controller

[Rails] Re: beginner question: database relationships

2011-02-07 Thread Alexander Farley
Thanks for the advice, follow up questions: I'm using Devise for authentication. I think this means the controller inside the Devise gem handles user model editing. So, how does one add Topics as a nested resource for Users? I understand this normally requires three things: a) nested partial fo

[Rails] Re: beginner question: database relationships

2011-01-30 Thread Alexander Farley
That helps a lot. To clarify, I am not necessarily looking to create seed data upon creation of a User; just trying to figure out how to "link" the creation of the two resources. The create_model method sounds about right. Anyway, your info gives me plenty to read up on for now. Thanks again A

[Rails] beginner question: database relationships

2011-01-29 Thread Alexander Farley
Hi, I'm new to db/web stuff so I have some basic questions. Basic question: I don't know what to add to my existing scaffolding-generated CRUD. This project requires "Users" who own many unique "Topics". Each "Topic" will contain a "Blacklist" textfile, several "Rawtext" textfiles and several "Web

[Rails] Rake test picks up logger configuration from my development.rb

2010-11-22 Thread Alexander Gitter
Hi, I recently added "config.logger = Logger.new(STDOUT)" to my development.rb and noticed that "rake test" suddenly prints SQL queries to the console as well. I then added "config.logger = Logger.new("/dev/null")" to test.rb, but that didn't help the issue. Aren't the tests supposed to use the c

[Rails] Re: 13" MBA or 15" MBP?

2010-10-21 Thread Alexander H.
I take it the C2D processor isn't a deal breaker? -- 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

[Rails] Re: 13" MBA or 15" MBP?

2010-10-21 Thread Alexander H.
Robert Walker wrote in post #956075: > Ar Chron wrote in post #956068: >> Screen real estate trumps all (IMHO), but then I'm a visually-oriented >> person. > > How do you define "Screen real estate?" > > MacBook Pro 15.4" @ 1440x900 > MacBook Air 13.3" @ 1440x900 MacBook Pro 15" can be ordered wit

[Rails] 13" MBA or 15" MBP?

2010-10-21 Thread Alexander H.
I'm currently doing mainly Ruby on Rails development. My preferable requirements would be to get at least two code editors or one code editor and a terminal side-by-side. It should be portable. I've already dropped off 17" MBP, because it's simply too big. 11" MBA is too small. Both, 13" MBA an

[Rails] Re: Not work has_many :through association

2010-05-25 Thread Alexander
i found the solution, it was so simple as add this to model of user attr_accessible :role_ids anyway thanks for all your answers On 25 mayo, 15:45, Alexander wrote: > you are right, my mistake > in the user form i have this > >     - for role in Role.all >       = check_box_tag

[Rails] Re: Not work has_many :through association

2010-05-25 Thread Alexander
you are right, my mistake in the user form i have this - for role in Role.all = check_box_tag "user[role_ids][]", role.id, @user.roles.include? (role) =h role.name On 25 mayo, 13:56, Frederick Cheung wrote: > On May 25, 12:35 pm, Alexander wrote: > > > I

[Rails] Re: Not work has_many :through association

2010-05-25 Thread Alexander
attribute :role_ids I need to explicitly save it? On 25 mayo, 10:23, Frederick Cheung wrote: > On May 24, 11:08 pm, Alexander wrote: > > > In the view form of user > > >     - for user in User.all > >       = check_box_tag 'role[user_ids][]', user.id, @role.u

[Rails] Not work has_many :through association

2010-05-24 Thread Alexander
Not work has_many :through association in rails 2.3.5 Models: class Role < ActiveRecord::Base attr_accessible :name has_many :assignments has_many :users, :through => :assignments end class User < ActiveRecord::Base attr_accessible :name has_many :assignments has_many :roles, :thro

[Rails] Re: Model Magic

2010-04-15 Thread Alexander
Yes, I know about this AR behavior. I think, would be correct if the comparison works both ways. For beginners, it looks like a 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 rubyonrails-t...@goo

[Rails] Model Magic

2010-04-14 Thread Alexander
>> [].eql? @product.files => false >> @product.files.eql? [] => true version: 2.3.5 Product :has_many files -- 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 unsubs

[Rails] Re: "Plugin not found"

2010-04-05 Thread Alexander S.
Thank you Ahmed Mohamed. I really wish there was more collection of such solution for Windows platform on the Web. Good job. On Mar 31, 6:09 am, Ahmed Mohamed wrote: > just change > stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null') > into > stream.reopen('NUL:') > > this because whe

[Rails] render :inline in ActionMailer

2010-03-07 Thread Thilo-Alexander Ginkel
Hello everyone, while attempting to figure out how to render an inline template as body of a mail message in an ActionMailer I am somewhat lost and hope that somebody on the list can point me into the right direction. My current code looks like this (with minor deletions to improve readability)

Re: [Rails] How to process collection_select in controller?

2010-03-07 Thread Thilo-Alexander Ginkel
Hello Gael, On Tuesday 02 March 2010 10:35:26 Gael Muller wrote: > In my opinion, there is nothing wrong with your piece of code. Are you > sure you have a reg_template_id column in your table ? Could you show > us the migration for the Event class ? sorry for the delayed response - some unexpect

[Rails] How to process collection_select in controller?

2010-03-01 Thread Thilo-Alexander Ginkel
Hello everyone, I am currently somewhat stuck figuring out an elegant solution to my following problem: Let's say I have the following classes: class Event < ActiveRecord::Base belongs_to :reg_template, :class_name => "EmailTemplate" [...] end class EmailTemplate < ActiveRecord::Base has

[Rails] ActionMailer does not find templates in production mode

2010-01-25 Thread Thilo-Alexander Ginkel
Hello everyone, I am currently struggling with the following issue that only seems to appear in my production environment: When attempting to send a mail from an ActionMailer the template location algorithm does not seem to pick up the corresponding template: ActionView::MissingTemplate (Missi

[Rails] Re: How to use remote_form_tag?

2009-09-23 Thread Alexander Melle
Hi Patrick, if i understand correctly you want to have 2 select boxes that are depending. So the second one changes it's content mased on the first one ... Took me some time to find out ... The trick was to put the second select into it's own partial : the view would look like this : [code]

[Rails] Re: Can non-ActiveRecord variables be temporarily stored in a class?

2009-08-30 Thread alexander sviridoff
Maybe this is useful http://forums.site5.com/showthread.php?t=18522 On 30 авг, 06:44, Colin Law wrote: > 2009/8/30 Frederick Cheung : > > > > > > > On 30 Aug 2009, at 09:17, Colin Law wrote: > > >> 2009/8/30 CoolAJ86 : > > Well yes - you still need to write the accessor methods to store yo

[Rails] Re: doubt with helper

2009-08-22 Thread alexander sviridoff
Ok this is application helper: module ApplicationHelper def seo_meta content_for(:meta) do "" end end end My template (application.html.erb): <%= yield(:meta) %> ... My other view that yields (index.html.erb): <%= seo_meta %> On 21 авг, 09:31, Alpha Blue wrote: > You shou

[Rails] doubt with helper

2009-08-21 Thread alexander
Hi all I need help I have in my application helper this function: def example content_for(:meta) do 'okis dokis' end end And in my main layout view: .. - yield(:meta) ... And in other view layer this: ... - example ... In development mode all this works, but in production in a serv

[Rails] How would I implement this as a named scope?

2009-06-22 Thread Alexander Trauzzi
I've made some fairly simple methods that perform a kind of generic ACL check. I use it as an initializer that adds one singleton method and one method to any subclasses of ActiveRecord. How would I go about changing this algorithm to a named_scope that I could then use in query chains? Attachm

[Rails] Re: Initializers and automatically running code

2009-06-22 Thread Alexander Trauzzi
Frederick Cheung wrote: > On Jun 22, 5:18�pm, Alexander Trauzzi s.net> wrote: >> >> end >> > Did you want to add a class method or were you intending to add an > instance method ? > > Fred Instance. So any instances of ActiveRecord (my models) would h

[Rails] Initializers and automatically running code

2009-06-22 Thread Alexander Trauzzi
I want to decorate ActiveRecord with a new method so that any classes that inherit from it also have the method. I've been told that initializers are the way to go, yet when I put a file in initializers containing: class << ActiveRecord::Base def methodName(params) end end The method do

[Rails] Re: More than one criteria in business logic...

2009-06-21 Thread Alexander Trauzzi
e looking for? > > Also, I think the standard for join tables is to name them in > alphabetical order, so messages_users. > > Gavin > > On Jun 21, 7:05�am, Alexander Trauzzi http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this

[Rails] More than one criteria in business logic...

2009-06-20 Thread Alexander Trauzzi
Hello all! I'm looking to get some help answering a design problem I'm facing. I'm definitely familiar with how models house all the business logic, but when it RoR, I'm somewhat confused :) If I have Users, and they have a HABTM relationship to Messages: Users o ID o Name Messages o ID o Bod

[Rails] need help with self-referential has_many :through associations

2009-05-03 Thread alexander
Hi In my application i need self-referential has_many :through associations, but that i make not work: Rails -v 2.3.2 The Migrations: create_table :pages do |t| t.string :name t.text :body end create_table :links do |t| t.integer :from_page_id t.integer :to_page_id end The Models: cl

[Rails] ActionMailer question

2009-02-19 Thread Alexander Annese
http://pastie.org/394347 I'm trying to concat a few things inside the subject portion of an actionmailer method, is it possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

[Rails] ActiveLdap belongs_to and has_many associations

2009-01-22 Thread Alexander Ebel
on I am testing the association. irb> me = User.find('aebel') irb> me.groups.each { |group| p group.cn };nil "develop" "wheel" => nil So far everything works fine. But when I try to do a membership test, it fails. irb> me.groups.member? 'wheel&#

[Rails] How to organize modules.

2008-09-06 Thread Alexander Kireev
Hi! I have rails application. Now I want add there some modules. I try to do it using plugins and have a problem. Maybe I doing something wrong. I build module as a class. Each module has own class definition with necessary functionality. Now I want to access them (get list of modules for example