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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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.
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? ==
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>> [].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
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
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)
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
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
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
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]
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
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
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
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
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
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
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
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
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
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
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
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
84 matches
Mail list logo