Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify video_tag a bit and make audio_tag able to accept multiple sources #4661

Merged
merged 2 commits into from
Jan 25, 2012
Merged

Conversation

janko
Copy link
Contributor

@janko janko commented Jan 25, 2012

To video_tag I just added that, when it accepts multiple sources, path_to_video is applied to each of them. And in audio_tag I just copied the logic from video_tag.

@josevalim
Copy link
Contributor

Tests please.

@janko
Copy link
Contributor Author

janko commented Jan 25, 2012

I hope I've done it the right way, since this is my first real pull request :)

@josevalim
Copy link
Contributor

Do the tests pass after your changes? If so, you did it the right way. :)

@janko
Copy link
Contributor Author

janko commented Jan 25, 2012

Yes, they did.

josevalim added a commit that referenced this pull request Jan 25, 2012
Modify video_tag a bit and make audio_tag able to accept multiple sources
@josevalim josevalim merged commit a6aea14 into rails:master Jan 25, 2012
@andrewdavidcostello
Copy link

I am unsure if this has changed since this commit however I tried:

audio_tag(["audio.mp3", "audio.ogg"], :controls => true)

Is this not the correct syntax?

The output I received was:

audio controls="controls" src="/audios/["audio.mp3", "audio.ogg"]"

@carlosantoniodasilva
Copy link
Member

This has been merged to master and I'm unsure if it got backported to 3-2, which means it is probably not available in a stable release yet.

@designium
Copy link

I'm also having the same issue as andrewdavidcostello. Is there a work around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants